![]() |
|
zpGallerificv1.4 Rectangular croped images - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Themes (https://forum.zenphoto.org/forum-5.html) +--- Thread: zpGallerificv1.4 Rectangular croped images (/thread-8457.html) |
zpGallerificv1.4 Rectangular croped images - veggie2u - 06-04-2011 I am trying to find if there is a setting to get proportional crops instead of the rectangular ones for the album thumbnails. It looks like the demo on gir-web's site is doing this with some of the albums, like nature. Is this done by custom code, or an options I can't find? zpGallerificv1.4 Rectangular croped images - acrylian - 06-04-2011 Please read the theming tutorial and review the functions documentation on customimage functions. zpGallerificv1.4 Rectangular croped images - gjr - 06-04-2011 Uncheck the "crop" checkbox in theme options. zpGallerificv1.4 Rectangular croped images - veggie2u - 07-04-2011 Hmm... It looks like a simple checkbox won't work, I will have to dig in a bit. When I look at the album.php file, there is this line to get the album thumbnails: " title=" "> The image size is hard coded there. zpGallerificv1.4 Rectangular croped images - sbillard - 07-04-2011 Some themes do that when the size of the image/thumbnail is also encoded in the CSS. So you should experiment to see if changing the size disrupts the page layout. zpGallerificv1.4 Rectangular croped images - veggie2u - 07-04-2011 Ok, here is what I found. First, I had the wrong file. It was gallery.php. Then, the template is using printCustomAlbumThumbImage which will crop the image. (didn't quite get the difference between size and crop parameters). Not what I thought I wanted. I changed to using printCustomAlbumThumbMaxSpace instead. This did give me full height portrait images, but I would have had to mess with other bits too much tonight to get it to look right. My solution: I went back to the original function, but instead of 100h, I used 158h which I got from the ratio of 4x6 (very close to un-cropped image) using the 238w that was there. This makes my landscape shot images fit perfectly, and my portrait shot images have more breathing room. I can live with that for now :-) I had to tweak the li the image/title/desc was in to give it more space too. I guess this thread is solved. Here is the gallery if anyone is interested. My gallery |