Member
Member
Uhhh   2014-02-26, 20:36
#1

Hi All,

Is there a possibility to add image dimensions on the printLatestImages and the printRandomImages functions?

Now there is no image dimensions when checking website on gtmetrix like:

somewebsite/cache/2014/new/IMG_3445_125_thumb.jpg

instead of:

The above is correct when loading thumbnails via album.php

TIA

Administrator
Administrator
acrylian   2014-02-26, 20:59
#2

The width and height attributes? That is probably possible however not that important anymore in times of responsivene webdesign. Technically a browser can reserve the space set with those but on a responsive layout for example those values are not exact at all (granted except for jquerymobile no official theme is responsive but they will sooner or later).
See for example discussions like this:
http://stackoverflow.com/questions/2414506/should-image-size-be-defined-in-the-img-tag-height-width-attributes-or-in-css

You can create your own display using the "get" variants of those functions (some work to do). Or best you open a ticket.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.