fix(media): upload photo — taille, formats et nginx

- nginx : client_max_body_size 15m (photos smartphone > 1 Mo rejetées silencieusement)
- backend : redimensionnement original à 500×500 max (aspect ratio conservé) avant sauvegarde WEBP
- backend : thumbnail généré depuis l'image déjà redimensionnée (économie mémoire)
- backend : formats acceptés étendus — image/heic, image/heif, image/jpg
- backend : normalisation content-type en lowercase (robustesse navigateurs)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-25 13:29:45 +02:00
parent 1210d4f9f3
commit 3dbd554eeb
3 changed files with 24 additions and 11 deletions
+2
View File
@@ -4,6 +4,8 @@ server {
root /usr/share/nginx/html;
index index.html;
client_max_body_size 15m;
gzip on;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml image/svg+xml;