Express image area in megapixels.

This commit is contained in:
voussoir 2022-08-14 13:22:21 -07:00
parent 7ec1f7e4c8
commit 306655ec8b
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -182,8 +182,8 @@
{% if author is not none %} {% if author is not none %}
<li>Author: <a href="/userid/{{author.id}}">{{author.display_name}}</a></li> <li>Author: <a href="/userid/{{author.id}}">{{author.display_name}}</a></li>
{% endif %} {% endif %}
{% if photo.width %} {% if photo.width and photo.height %}
<li title="{{photo.area}} px">Dimensions: {{photo.width}}x{{photo.height}} px</li> <li title="{{(photo.area / 1000000)|round(2)}} mpx">Dimensions: {{photo.width}}&times;{{photo.height}} px</li>
<li>Aspect ratio: {{photo.aspectratio|round(2)}}</li> <li>Aspect ratio: {{photo.aspectratio|round(2)}}</li>
{% endif %} {% endif %}
<li>Size: {{photo.bytes|bytestring}}</li> <li>Size: {{photo.bytes|bytestring}}</li>