ZenphotoCMS Forum
Specify image dimensions - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Specify image dimensions (/thread-11661.html)



Specify image dimensions - Uhhh - 2014-02-26

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




Specify image dimensions - acrylian - 2014-02-26

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.