-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
379f3ff
commit 2dfe055
Showing
1 changed file
with
40 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |