ZenphotoCMS Forum
tweeking the Thumb size - 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: tweeking the Thumb size (/thread-2881.html)



tweeking the Thumb size - pogo - 2008-05-15

i'm finding that the option for Non-Cropped Thumb size is not working as i wish it would. it seems that it is creating the thumbs based only on 1 side - the width. this causes difficulties when trying to nicely display a grid of full sized thumbnails for an album or any kind of thumb list.

example:
setting - Thumb size: 100
will cause thumbs to be 100 wide by 200 high (if the image is a 1:2 ratio)
and 100 wide by 30 high (if the image is a 10:3)

so if i want to grid my No-Crop thumbnails - they look very messy.

a better way to approach this is to have a 'longest side' method.

from which when you set - Thumb size: 100
it would produce thumbs that are never wider nor higher than the set size.
thus making it easy to neatly display a grid of thumbs without cropping them.
as seen in this gallery using 'folderblog': http://www.focusedonlight.com/index.php/image/archives/12/

is this something that has been addressed?
if so, where can i find the hack code?
if not,
is this possible to hack into the functions? how?
and can it be included in a future release?




tweeking the Thumb size - jackdaw - 2008-05-15

Hmmm... that link does look good, but the aligning is done by css. I tried it myself but without succes. I wonder if this is because ZenPhoto doesn't print the actual size of the thumb in the img src code. This way (perhaps) the vertical-align:middle; doesn't work?

This code gives you uncropped and equal(...) size thumbs (got it from another post, so not from my intelligence ):

`

[img][/img]`

instead of the usual print command...