ZenphotoCMS Forum
Set thumbnail width & height - 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: Set thumbnail width & height (/thread-10278.html)



Set thumbnail width & height - greggreiner - 2012-08-07

There used to be options in the admin that would allow you to output a specific size thumbnail (crop width and crop height).

Now there are just cropping %s. Is there any way to specify a global thumbnail size in the admin - via a custom option or some other way?

I can't find a way to do this and not having any luck controlling my thumbnail height.

Thanks
Greg




Set thumbnail width & height - acrylian - 2012-08-07

Those were actually always % values. By default thumbs are square, if you need different ones you need to modify the theme using custom image functions.




Set thumbnail width & height - greggreiner - 2012-08-07

Thanks - they were px in v1.3 (https://skitch.com/dsgreg/emrs3/zpoptions) - but that's fine, I can use a custom function.

Greg




Set thumbnail width & height - sbillard - 2012-08-07

They were always percent values, it is just that they used to be expressed in pixels with no reference point. There was (and still is) a setting for the thumbnail size.

You can set the thumbnail size to the largest dimension and then set the cropping percentages to get the aspect ratio you want.

For instance, a 100 pixel thumbnail with 0% left and 25% top cropping will give a 2 to 1 aspect or 100x50px thumbnail.




Set thumbnail width & height - greggreiner - 2012-08-08

great, that helps - thanks!