Initial commit: What To Cook (WTC) v4.4 - Digitales Kochbuch, Wochenmenueplan & Buchdruck

This commit is contained in:
2026-10-14 20:24:37 +02:00
commit c01d2d7639
171 changed files with 14073 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
import os
from PIL import Image
p = "/home/maxi/Projekt/wtc.waiswuaschd.de/app/static/img/chapters/chapter_1.png"
im = Image.open(p)
# Downscale with high quality Lanczos filter to 450x450
im = im.resize((450, 450), Image.Resampling.LANCZOS)
im.save(p, "PNG", optimize=True)
print("Resized chapter_1.png to 450x450")