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:
|
try:
|
||||||
# Versuche, aus "manual"-Ordner zu laden
|
# 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:
|
except RuntimeError:
|
||||||
# Erstelle automatisch generiertes Bild
|
# Erstelle automatisch generiertes Bild
|
||||||
|
|
Loading…
Reference in a new issue