From 86d9b351b1b72605e0420a5f24f8c1f6494a73aa Mon Sep 17 00:00:00 2001 From: Mathieu Fort Date: Sat, 6 Jun 2026 11:18:18 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20ZIP=20import,=20rotation,=20feather=20s?= =?UTF-8?q?lider,=20lightbox=20+=20config=20d=C3=A9ploiement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Import ZIP produits (HEIC/JPG/PNG, structure dossiers conservée) - Rotation des images ±90° avec aperçu CSS et export canvas - Slider récupération des bords (feather 0–5 px) - Lightbox plein écran (clic miniature, Échap, fond noir) - Fix timeout HEIC 30s → 120s - Fix MIME type blobs JSZip pour heic2any - Dockerfile nginx:alpine + docker-compose.yml pour déploiement Co-Authored-By: Claude Sonnet 4.6 --- .gitignore | 2 + Dockerfile | 13 +++ docker-compose.yml | 11 +++ index.html | 213 +++++++++++++++++++++++++++++++++++--------- js/bgRemover.js | 72 ++++++++++----- js/heicConverter.js | 27 +++--- js/imageRotator.js | 46 ++++++++++ js/zipExporter.js | 8 +- js/zipImporter.js | 57 ++++++++++++ 9 files changed, 368 insertions(+), 81 deletions(-) create mode 100644 .gitignore create mode 100644 Dockerfile create mode 100644 docker-compose.yml create mode 100644 js/imageRotator.js create mode 100644 js/zipImporter.js diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c051e52 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.claude/ +.DS_Store diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ab1543a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM nginx:alpine + +# Copier les fichiers statiques +COPY . /usr/share/nginx/html/ + +# Supprimer les fichiers non destinés au navigateur +RUN rm -rf /usr/share/nginx/html/.git \ + /usr/share/nginx/html/.claude \ + /usr/share/nginx/html/Dockerfile \ + /usr/share/nginx/html/docker-compose.yml \ + /usr/share/nginx/html/.gitignore + +EXPOSE 80 diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..c28dcdf --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,11 @@ +services: + app: + build: . + image: convertisseur-images:latest + restart: unless-stopped + networks: + - web + +networks: + web: + external: true diff --git a/index.html b/index.html index 6971602..cc0b45f 100644 --- a/index.html +++ b/index.html @@ -48,10 +48,10 @@ -

Glissez vos fichiers HEIC ici

-

ou cliquez pour parcourir

+

Glissez vos fichiers ici

+

ZIP (dossiers produits) · HEIC · HEIF — ou cliquez pour parcourir

@@ -66,7 +66,12 @@
- +
+ + +
Avant