{% extends "base.html" %} {% block title %}{{ filename }}{% endblock %} {% block content %}
{% if from_trash %} ← Corbeille {% else %} ← Retour {% endif %}

{{ filename }}

{% if not from_trash %} {% include '_preview_nav.html' %} {% endif %}
{% if not from_trash %} {% endif %}
Taille : {{ filesize }} Modifié : {{ mtime.strftime('%d/%m/%Y %H:%M') }} Télécharger
{% if meta %}
{% if meta.width and meta.height %}
Dimensions {{ meta.width }} × {{ meta.height }} px
{% endif %} {% if meta.format %}
Format {{ meta.format }}
{% endif %} {% if meta.mode %}
Mode couleur {{ meta.mode }}
{% endif %} {% if meta.dpi %}
Résolution {{ meta.dpi[0]|int }} × {{ meta.dpi[1]|int }} DPI
{% endif %} {% if meta.exif %} {% set labels = { 'Make':'Appareil', 'Model':'Modèle', 'Software':'Logiciel', 'DateTime':'Modifié le', 'DateTimeOriginal':'Pris le','DateTimeDigitized':'Numérisé le', 'ExposureTime':'Exposition','FNumber':'Ouverture', 'ISOSpeedRatings':'ISO', 'FocalLength':'Focale', 'Flash':'Flash', 'WhiteBalance':'Balance blancs', 'ExposureProgram':'Programme','MeteringMode':'Mesure', 'Orientation':'Orientation','Artist':'Auteur', 'Copyright':'Copyright', 'ColorSpace':'Espace colorimétrique', 'XResolution':'Résolution X','YResolution':'Résolution Y', 'ResolutionUnit':'Unité résolution', 'GPS':'Coordonnées GPS', } %} {% set color_spaces = {1: 'sRGB', 2: 'Adobe RGB', 65535: 'Non calibré'} %} {% set resolution_units = {1: 'Sans unité', 2: 'pouces', 3: 'cm'} %} {% for key, val in meta.exif.items() %}
{{ labels.get(key, key) }} {% if key == 'GPS' and val %} {{ val }} {% elif key == 'ColorSpace' %} {{ color_spaces.get(val | int, val) }} {% elif key == 'ResolutionUnit' %} {{ resolution_units.get(val | int, val) }} {% else %} {{ val }} {% endif %}
{% endfor %} {% endif %}
{% endif %}
{{ filename }}
{% if not from_trash %}

Créer des copies redimensionnées

Tailles (px) Tout · Aucun
{% for size in [32, 64, 100, 128, 200, 300, 500, 600, 1024] %} {% endfor %}
Formats Tout · Aucun
{% for fmt in ['png', 'jpg', 'ico'] %} {% endfor %}
{% if meta and meta.width and meta.height %}
Dimension libre (max {{ meta.width }} × {{ meta.height }} px)
× px
{% endif %}
Les fichiers sont créés dans le même dossier
{% endif %}{# from_trash #} {% endblock %}