Uploaded <%= pretty_time(@image.created_at) %> <%= render(PhilomenaWeb.ImageView, "_uploader.html", assigns) %>
  <%= @image.image_width %>x<%= @image.image_height %> <%= if not is_nil(@image.image_duration) and @image.image_is_animated and @image.image_duration > 0 do %>   <% dur = trunc(@image.image_duration) %> <% ms = trunc((@image.image_duration - dur) * 100) %> <% {mm, ss} = {div(dur, 60), rem(dur, 60)} %> <%= :io_lib.format("~2..0B:~2..0B.~2..0B", [mm, ss, ms]) %> <% end %> <%= String.upcase(to_string(@image.image_format)) %> <% size_kb = div(@image.image_size, 1000) %> <% size_mb = Float.round(size_kb / 1000.0, 2) %> <%= if size_kb <= 1000 do %> <%= size_kb %> kB <% else %> <%= size_mb %> MB <% end %>