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;
Okay, so where the thumbs are displayed, in the theme (for index.php, the album list), the function looks something like:
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)
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.
What I have in my page is:
`">
`
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?
Kiwi |
Nevermind, I solved the problem with CSS.