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