From 657a7507f7d72cbca766c878d601a6f909ffe7df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Sun, 10 Sep 2023 15:22:45 +0000 Subject: [PATCH] manual image processing --- api/advent22_api/core/depends.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/api/advent22_api/core/depends.py b/api/advent22_api/core/depends.py index cf1b9aa..c9bf5f1 100644 --- a/api/advent22_api/core/depends.py +++ b/api/advent22_api/core/depends.py @@ -97,7 +97,11 @@ async def get_image( try: # Versuche, aus "manual"-Ordner zu laden - return await load_image(f"images_manual/{day}.jpg") + img = await load_image(f"images_manual/{day}.jpg") + + # Als AdventImage verarbeiten + image = await AdventImage.from_img(img) + return image.img except RuntimeError: # Erstelle automatisch generiertes Bild