Although I'm using ZenPhoto now for over a year, I still get very confused about the many different functions there are. I.e. the matter I'm confronted with now is the format of the thumbs, squared, cropped or proportional.
As I understand it now each presentation needs a different function to be placed in the template file (album.php). But why not just call one function that can work with the settings you give in the options page? Much more user friendly.
So a function like printAlbumThumbImage(getAlbumTitle()); imho should present thumbs with dimensions 85x85 cropped if that's what's in the settings, or uncropped and with a longest side of 150 if that's what the settings are, etc. You want the thumbs to be cropped and with a different ratio, then use the ratio given in the options page.
So I was thinking it would be great to have this kind of list/choices in the options page:
1. Cropped square (exact size (width=height))
3. Cropped custom size (width, height)
2. Uncropped/proportional - max. dimension is longest side
According to what choice is made here, the function printAlbumThumbImage(getAlbumTitle()); takes care of it.
I'm just thinking out loud here...
Comments
We need to figure out to do that without breaking older themes and installations though what can happen if we change the default behaviour. We are considering it and will discuss it.
Thumb Crop set:
Cropped square--so long as your crop height & width are equal. If the crop value == the thumb size then you will get as much as the image as possible from the crop. If not the crop will be taken from within the image by the percentage difference.
Cropped by some other aspect ration--just set it.
Thumb Crop not set:
Thumb will be based on thumb size. Image will be fit based on the longest side.
If you wan to be fancier than this you will need to use the special functions.
`
if (getFullWidth() === getFullHeight() OR getFullWidth() > getFullHeight()) { printCustomSizedImage(getImageTitle(), null, 150, null);
} else {
printCustomSizedImage(getImageTitle(), null, null , 150);
`
I tried to do the same with the albumthumbs but that did not work and I don't know why:
`
if (getFullWidth() === getFullHeight() OR getFullWidth() > getFullHeight()) { printCustomAlbumThumbImage(getAlbumTitle(), null, 150, null);
} else {
printCustomAlbumThumbImage(getAlbumTitle(), null, null , 150);
`
Will there be an small announcement here on the forum when I fix for this is available?
Because Jack (me real name), then everything works as it is supposed to be :=)...
Both the imagethumbs and albumthumbs show up fine now. Thanks a lot!