Hi, I would like to have that the thumbnails have all the same height. The width doesn't matter...but the thumbs shouldn't be cropped. Is this possible?
Look in the zp-config.php file and modify the settings as needed. It appears your settings are set to false.
// Default thumbnail size and scale: // If $thumb_crop is set to true, then the thumbnail will be a centered portion of the image // with the given width and height after being resized to $thumb_size (by shortest side). // Otherwise, it will be the full image resized to $thumb_size (by shortest side). // NOTE: thumb_crop_width and height should always be less than or equal to thumb_size $conf['thumb_size'] = 100; $conf['thumb_crop'] = true; $conf['thumb_crop_width'] = 85; $conf['thumb_crop_height'] = 85;
1.0.3 has the capability to do this easily, but it's not settable through the zp-config.php yet... you'd need to do it by manually changing the thumb function in the theme itself. If you're comfortable doing that, let me know and I'll give you instructions.
You can leave off any number of arguments at the end and they'll take default values. The example I gave you above puts in 80 for the height, so everything will be of height 80.
The same thing works for album.php with image thumbnails:
I have successfully used the function printAlbumThumbImage(getAlbumTitle()) to achieve custom thumbnails on my gallery's homepage (http://www.decibel.ws/gallery). However, I run into a snag when I use printCustomSizedImage(getImageTitle()). The width is 100 but the height is either greater or lesser depending on the orientation of the photo and the photo is stretched into improper proportions. Please help.
Comments
// Default thumbnail size and scale:
// If $thumb_crop is set to true, then the thumbnail will be a centered portion of the image
// with the given width and height after being resized to $thumb_size (by shortest side).
// Otherwise, it will be the full image resized to $thumb_size (by shortest side).
// NOTE: thumb_crop_width and height should always be less than or equal to thumb_size
$conf['thumb_size'] = 100;
$conf['thumb_crop'] = true;
$conf['thumb_crop_width'] = 85;
$conf['thumb_crop_height'] = 85;
`printAlbumThumbImage(getAlbumTitle())`
Change it to:
`printCustomAlbumThumbImage(getAlbumTitle(), null, null, 80)`
Here's the function's explanation: `function printCustomAlbumThumbImage([Alt Text], [Size (like old)], [Width], [Height], [Crop W], [Crop H], [Crop X-offset], [Crop Y-offset), [IMG class], [IMG id])`
You can leave off any number of arguments at the end and they'll take default values. The example I gave you above puts in 80 for the height, so everything will be of height 80.
The same thing works for album.php with image thumbnails:
`printImageThumb(getImageTitle())` becomes `printCustomSizedImage(getImageTitle(), null, null, 80)`
What I have in my page is:
`" title="<?php echo getImageTitle();?>">
<?php printCustomSizedImage(getImageTitle(), null, 100, 100); ?>
`
Also, for some reason I cannot get the album description to display on the same line as the title. What I want is:
Gallery Title | Album Title | Album Description
But it displays as:
Gallery Title | Album Title
Album Description
What can I do about this?
`
" title="Gallery Index">Kiwi | <?php printAlbumTitle(true);?> <?php printAlbumDesc(true); ?>
`