Performance: GZip, Cache-Control, WebP, SQLite-Tuning, Indizes, srcset — SW by-v438, APP_VER 417

This commit is contained in:
rene 2026-04-26 17:40:18 +02:00
parent 5bd07d9598
commit e0c2b2bdc1
10 changed files with 46 additions and 12 deletions

View file

@ -686,7 +686,7 @@ async def upload_media(dog_id: int, entry_id: int,
elif media_type == "image":
preview_bytes = generate_preview(raw_data, ext)
if preview_bytes:
preview_path = os.path.splitext(path)[0] + "_preview.jpg"
preview_path = os.path.splitext(path)[0] + "_preview.webp"
with open(preview_path, "wb") as f:
f.write(preview_bytes)