![]() |
|
Images size is NOT longest 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: Images size is NOT longest size (/thread-3153.html) |
Images size is NOT longest size - wongm - 2008-06-24 The 'Images size is longest size' option does not seem to affect the size of thumbnails. Is this supposed to be, or was I using the options in the wrong way? I ended up coding up my own hack to make it work the way I want. Images size is NOT longest size - acrylian - 2008-06-24 Yes, that option only refers to the sized images on image.php, not to thumbnails. I guess you want to have uncropped thumbnails that fitt into a specific space? Images size is NOT longest size - wongm - 2008-06-27 Yes, in my gallery I had some very wide but short images, and when thumbnailed conventionally they end up taking up more sideways space than all other images. I did use the 'crop thumbnail' for a while, but didn't like having images cropped. My hack in functions-image.php was as follows: // Calculate proportional height and width.
` Images size is NOT longest size - acrylian - 2008-06-27 Actually this code I posted on the other thread should do the same, it puts uncropped images into a 150x150 square. printCustomSizedImage(getImageTitle(), null, 150, null); } else { printCustomSizedImage(getImageTitle(), null, null , 150); }` Just use this within the next_image() loop on the album.php of your theme. No need to hack core files, which we don't recommend since you have to do it all again with every update. |