Member
Member
veggie2u   06-04-2011, 03:08
#1

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?

Administrator
Administrator
acrylian   06-04-2011, 08:24
#2

Please read the theming tutorial and review the functions documentation on customimage functions.

Member
Member
gjr   06-04-2011, 12:06
#3

Uncheck the "crop" checkbox in theme options.

Member
Member
veggie2u   07-04-2011, 00:35
#4

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.

Member
Member
sbillard   07-04-2011, 01:40
#5

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.

Member
Member
veggie2u   07-04-2011, 02:56
#6

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

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.