I have seen several posts on this and I have unsuccessfuly gotten any of the "fixes" to work.
Instead of having the thumbnails cropped to a square I would like them to maintain some sort of aspect ratio.
I am using the Default Dark theme and have tried in several nightly builds (I am running 11-30 right now) as well as the stable 1.2.1. The previous fixes seem not to work still. What can I do to get that to happen. By that I am referring to thumbnails maintaining the aspect ratio of the image, without having to create individual thumbnails for each picture.
Thx
Comments
I'd found something like this in this board.
Did you try this code in your album.php theme for example ?
`
<?php while (next_image(false, $firstPageImages)): ?>
" title="<?php echo getImageTitle();?> ">
<?php
$desirableThumbWidth = 150;
$desirableThumbHeight = 150;
if (isLandscape()) {
$myImgSrc = getCustomImageURL(NULL,$desirableThumbWidth,NULL);
}
else {
$myImgSrc = getCustomImageURL(NULL,NULL,$desirableThumbHeight);
}
?>
<?php endwhile; ?>
`
Change the 150 value to the one you want.
But here are the direct links to the documentation (where all available functions are listed):
http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functiongetCustomAlbumThumbMaxSpace
http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functiongetCustomSizedImageMaxSpace
http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functionprintCustomAlbumThumbMaxSpace
http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functionprintCustomSizedImageMaxSpace
thx for the help