fix: dot needed before suffix

This commit is contained in:
julius 2024-10-27 20:12:44 +01:00
parent 94489b5da2
commit b4e70c2245
Signed by: julius
GPG Key ID: C80A63E6A5FD7092

View File

@ -298,7 +298,7 @@ def make_wallpaper(
buf.seek(0)
else:
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])