Skip to content

Commit

Permalink
Update resize.html
Browse files Browse the repository at this point in the history
  • Loading branch information
tiritibambix authored Dec 18, 2024
1 parent 379f3ff commit 2dfe055
Showing 1 changed file with 40 additions and 29 deletions.
69 changes: 40 additions & 29 deletions templates/resize.html
Original file line number Diff line number Diff line change
@@ -1,29 +1,40 @@
<form method="POST" action="{{ url_for('resize_image', filename=filename) }}">
<label for="resize_mode">Mode de redimensionnement :</label>
<select name="resize_mode" id="resize_mode">
<option value="pixels">Pixels</option>
<option value="percent">Pourcentage</option>
</select>
<br>
<label for="width">Largeur :</label>
<input type="text" name="width" id="width">
<br>
<label for="height">Hauteur :</label>
<input type="text" name="height" id="height">
<br>
<label for="keep_ratio">Conserver le ratio :</label>
<input type="checkbox" name="keep_ratio" id="keep_ratio">
<br>
<label for="quality">Qualité (1-100) :</label>
<input type="text" name="quality" id="quality" value="100">
<br>
<label for="format">Convertir au format :</label>
<select name="format" id="format">
<option value="">Aucun</option>
<option value="jpg">JPG</option>
<option value="png">PNG</option>
<option value="webp">WEBP</option>
</select>
<br>
<button type="submit">Redimensionner</button>
</form>
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Redimensionner l'image</title>
</head>
<body>
<h1>Options de redimensionnement</h1>
<form method="POST" action="{{ url_for('resize_image', filename=filename) }}">
<label for="resize_mode">Mode de redimensionnement :</label>
<select name="resize_mode" id="resize_mode">
<option value="pixels">Pixels</option>
<option value="percent">Pourcentage</option>
</select>
<br>
<label for="width">Largeur (en pixels) :</label>
<input type="text" name="width" id="width">
<br>
<label for="height">Hauteur (en pixels) :</label>
<input type="text" name="height" id="height">
<br>
<label for="keep_ratio">Conserver le ratio :</label>
<input type="checkbox" name="keep_ratio" id="keep_ratio">
<br>
<label for="quality">Qualité (1-100) :</label>
<input type="number" name="quality" id="quality" value="100">
<br>
<label for="format">Convertir au format :</label>
<select name="format" id="format">
<option value="">Aucun</option>
{% for fmt in SUPPORTED_FORMATS %}
<option value="{{ fmt }}">{{ fmt }}</option>
{% endfor %}
</select>
<br>
<button type="submit">Redimensionner</button>
</form>
</body>
</html>

0 comments on commit 2dfe055

Please sign in to comment.