fix: dot needed before suffix
This commit is contained in:
parent
94489b5da2
commit
b4e70c2245
@ -298,7 +298,7 @@ def make_wallpaper(
|
|||||||
buf.seek(0)
|
buf.seek(0)
|
||||||
else:
|
else:
|
||||||
with pyvips.Image.svgload_buffer(content.as_str().encode("utf-8")) as image:
|
with pyvips.Image.svgload_buffer(content.as_str().encode("utf-8")) as image:
|
||||||
buf = image.write_to_buffer(fileformat)
|
buf = image.write_to_buffer("." + fileformat)
|
||||||
return StreamingResponse(content=buf, media_type=MEDIA_TYPES[fileformat])
|
return StreamingResponse(content=buf, media_type=MEDIA_TYPES[fileformat])
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user