I am working on an album with both horizontal and vertical thumbnails, Zenpage theme. On pages containing only horizontal or only vertical images, the thumbs line up and space just fine.
But on pages that have both types, what happens is I get a white space where a horizontal thumbnail would fit, followed by more thumbnails, then verticals, etc. It seems that if there is even one vertical at the end of a page of thumbnails, it somehow prevents the horizontal thumbnails from occupying what is instead seen as white space.
Comments
But if I go and have a look at, say, the horizontal thumbnails, I see that their height varies between 136px - 153px. This throws off good alignment on some album pages, and leaves big empty spaces here and there where thumbs of greater height push too far down the page - or don't occupy enough space, vertically.
Where/how does one set a fixed thumbnail height? I was looking at the code on the album.php file,
`<?php printImageThumb(getBareImageTitle()); ?>`
I know there were some MaxSize or MaxSpace functions here that addressed this, but I am unable to find the correct references in the documentation.
click on the index and then on the letter that starts the function you are querying.
http://www.zenphoto.org/news/functions-documentation
You are looking for the set of maxspace image functions.
Also, how does one have the code distinguish between horizontal and vertical images?
These are template functions.
The sense of the maxspace function is to define a width x height size that the image then does not exceed. The function takes care about landscape or portrait itself and resizes accordingly.
If you want to do it yourself there is also a function to check for landscape (search for that term on the functions).
Thanks.
`
`
I think his problem was uncropped thumbs and for that within a fixed w x h you need to use the maxspace image functions.