ZenphotoCMS Forum
Thumbnail scaling - 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: Thumbnail scaling (/thread-1013.html)

Pages: 1 2


Thumbnail scaling - acrylian - 2008-01-03

By the way: If you don't fill in anything in the fields "Crop thumbnail width" and "Crop thumbnail height" it will work too.




Thumbnail scaling - benjancewicz - 2008-01-03

Excellente. Thank you both. Both suggestions work (I tried acrylian's suggestion first, then fixed the code).

Now I have another question... it appears as though the "Thumb size:" checkbox dictates how big the thumbnail is on shortest side... is there a way to make it define the longest size instead?

Here's how it looks now: http://zerflin.us/ZenPhoto/index.php?album=works




Thumbnail scaling - acrylian - 2008-01-03

You could try replacing the imagethumb() function in your theme's image.php. We have a (experimental) function called printCustomSizedImageMaxHeight() that gives you the possibility to set the maximum width with the common size option in the admin and the maximum height within this function. See here for further info: http://www.zenphoto.org/documentation




Thumbnail scaling - Tak - 2008-02-19

It's just me again. :x All the fixes above work for the 1.1.3 version, but not the newest 1.1.4 build. So my proportionately scaled thumbs are all ugly again. Is there any way to fix things again for 1.1.4?