From b4e70c2245d6510ce768c5137e548f9722a733e0 Mon Sep 17 00:00:00 2001 From: julius Date: Sun, 27 Oct 2024 20:12:44 +0100 Subject: [PATCH] fix: dot needed before suffix --- speckles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/speckles.py b/speckles.py index 45f6f3e..745bf42 100644 --- a/speckles.py +++ b/speckles.py @@ -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])