fix: close library upload flow and harden image storage
Community checks / verify (push) Skipped
Verify Frame Flow / verify (push) Successful in 8m9s

This commit is contained in:
渡口浪人
2026-10-24 00:38:00 +08:00
parent 0859871363
commit 1494904b12
39 changed files with 1471 additions and 240 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ def render_captioned_photo(
quality=quality,
)
canvas = Image.new("RGB", size, "white")
with Image.open(BytesIO(photo_data)) as photo:
with Image.open(BytesIO(photo_data), formats=("JPEG", "PNG", "WEBP")) as photo:
canvas.paste(photo, (0, 0))
draw = ImageDraw.Draw(canvas)
values = [