Ajout de la prise en charge des fichiers TIFF, amélioration de la gestion de la progression et mise à jour du Dockerfile pour inclure exiftool

This commit is contained in:
Aristide Manyessé
2025-07-17 14:20:00 +00:00
parent d873dd118a
commit 4d1361057a
6 changed files with 241 additions and 83 deletions

View File

@@ -1,13 +1,9 @@
<!-- views/result.tpl -->
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>Téléchargement prêt</title>
<!-- Lightbox CSS -->
<title>Vos images sont prêtes</title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/lightbox2/2.11.4/css/lightbox.min.css" rel="stylesheet">
<style>
body {
font-family: 'Segoe UI', sans-serif;
@@ -24,16 +20,7 @@
text-align: center;
}
h1 {
color: #1e3a8a;
}
.info {
background-color: #f1f5f9;
padding: 15px;
border-radius: 8px;
margin-bottom: 30px;
}
h1 { color: #1e3a8a; }
.gallery {
display: flex;
@@ -47,11 +34,6 @@
width: 80px;
border-radius: 6px;
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
transition: transform 0.2s ease;
}
.gallery a img:hover {
transform: scale(1.05);
}
a.download-btn {
@@ -65,32 +47,31 @@
font-weight: bold;
}
a.download-btn:hover {
background-color: #1d4ed8;
.info {
margin-bottom: 25px;
font-size: 18px;
}
</style>
</head>
<body>
<div class="container">
<h1>📦 Vos images sont prêtes !</h1>
<div class="info">
<p><strong>{{ count }}</strong> images ont été redimensionnées</p>
<p>Ratio appliqué : <strong>{{ ratio }}</strong></p>
<p>{{ count }} images redimensionnées</p>
<p>Ratio utilisé : {{ ratio }}</p>
</div>
<div class="gallery">
% for img in images:
<a href="/resized/{{ img }}" data-lightbox="gallery" data-title="{{ img }}">
<img src="/resized/{{ img }}" alt="{{ img }}">
<img src="/resized/{{ img }}">
</a>
% end
</div>
<a class="download-btn" href="/download">⬇️ Télécharger les images réduites</a>
<a class="download-btn" href="/download">⬇️ Télécharger toutes les images</a>
</div>
<!-- Lightbox JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/lightbox2/2.11.4/js/lightbox.min.js"></script>
</body>
</html>