cms: Upload-Bilder zu WebP konvertieren (sharp)

Raster-Uploads (jpg/png/…) werden zu WebP (q82), auf max. 2000px begrenzt,
EXIF-Rotation korrigiert — ~85% kleiner. SVG/GIF bleiben unangetastet.
Eindeutige Dateinamen verhindern Kollisionen.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-05-31 12:47:16 +02:00
parent f42a69c7ed
commit 5704c0f94c
3 changed files with 559 additions and 14 deletions
+2 -1
View File
@@ -12,6 +12,7 @@
"@hono/node-server": "^1.13.7",
"@supabase/supabase-js": "^2.47.10",
"gray-matter": "^4.0.3",
"hono": "^4.6.14"
"hono": "^4.6.14",
"sharp": "^0.33.5"
}
}