{% import "header.html" as header %}
Photo {{photo.basename}}
{% set filename = photo.id + photo.dot_extension %} {% set file_link = "/file/" + filename %} {{header.make_header(session=session)}}
Tags
add
{% set tags = photo.sorted_tags() %} {% for tag in tags %}
{% set qualified_name=tag.qualified_name() %} {% set display_name=qualified_name %} {% if display_name|length > 30 %} {% set display_name = display_name[-30:] %} {% set display_name = display_name.split(".", 1)[1] %} {% endif %}
{{display_name}}
{% endfor %}
File info
refresh
Filename: {{photo.basename}}
{% if photo.author_id %} {% set author = photo.author() %}
Author:
{{author.username}}
{% endif %} {% if photo.width %}
Dimensions: {{photo.width}}x{{photo.height}} px
Aspect ratio: {{photo.ratio}}
{% endif %}
Size: {{photo.bytestring()}}
{% if photo.duration %}
Duration: {{photo.duration_string}}
Overall Bitrate: {{((photo.bytes / 128) / photo.duration)|int}} kbps
{% endif %}
Download as original filename
Download as {{photo.id}}.{{photo.extension}}
{% set albums = photo.albums() %} {% if albums %}
Albums containing this photo
{% for album in albums %}
{{album.display_name}}
{% endfor %} {% endif %}
{% if photo.simple_mimetype == "image" %}
{% elif photo.simple_mimetype == "video" %}
{% elif photo.simple_mimetype == "audio" %}
{% else %}
View {{filename}}
{% endif %}