Express image area in megapixels.
This commit is contained in:
parent
7ec1f7e4c8
commit
306655ec8b
1 changed files with 2 additions and 2 deletions
|
@ -182,8 +182,8 @@
|
|||
{% if author is not none %}
|
||||
<li>Author: <a href="/userid/{{author.id}}">{{author.display_name}}</a></li>
|
||||
{% endif %}
|
||||
{% if photo.width %}
|
||||
<li title="{{photo.area}} px">Dimensions: {{photo.width}}x{{photo.height}} px</li>
|
||||
{% if photo.width and photo.height %}
|
||||
<li title="{{(photo.area / 1000000)|round(2)}} mpx">Dimensions: {{photo.width}}×{{photo.height}} px</li>
|
||||
<li>Aspect ratio: {{photo.aspectratio|round(2)}}</li>
|
||||
{% endif %}
|
||||
<li>Size: {{photo.bytes|bytestring}}</li>
|
||||
|
|
Loading…
Reference in a new issue