From 306655ec8bda6999792bb2f672f474d6952b72fe Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sun, 14 Aug 2022 13:22:21 -0700 Subject: [PATCH] Express image area in megapixels. --- frontends/etiquette_flask/templates/photo.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontends/etiquette_flask/templates/photo.html b/frontends/etiquette_flask/templates/photo.html index 52d6536..7e11062 100644 --- a/frontends/etiquette_flask/templates/photo.html +++ b/frontends/etiquette_flask/templates/photo.html @@ -182,8 +182,8 @@ {% if author is not none %}
  • Author: {{author.display_name}}
  • {% endif %} - {% if photo.width %} -
  • Dimensions: {{photo.width}}x{{photo.height}} px
  • + {% if photo.width and photo.height %} +
  • Dimensions: {{photo.width}}×{{photo.height}} px
  • Aspect ratio: {{photo.aspectratio|round(2)}}
  • {% endif %}
  • Size: {{photo.bytes|bytestring}}