mirror of
https://code.lenaisten.de/Lenaisten/advent22.git
synced 2024-11-23 00:03:07 +00:00
manual image processing
This commit is contained in:
parent
050c8408d9
commit
657a7507f7
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue