In the [i]zp-config.php[/i] we have this:
Quote:`
// 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 [b](by shortest side)[/b].
// NOTE: thumb_crop_width and height should always be less than or equal to thumb_size
`
Shouldn't be scaling by [b]longest[/b] side? The thumbs became a mess when scaling this way. At least it should be an option.
`
// Default thumbnail size and scale:
// If $thumb_crop is set to true, then the thumbnail will be a [b]centered portion[/b] 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
`
I'd need that the thumb is not generated from centered portion, but from top portion. What do I have to edit in i.php to achieve this?
thanks!
This thumb scaling by shortest side is a bit of a problem for me too. Does anyone know a hack to get it to work by longest side, maybe change the order of division in the appropriate function?
I've looked at the function "getCustomThumbURL" in the theme Stopdesign - with it I know I can print custom sized thumbs... but how do I get them to scale by the longest side, and not simply crop? I don't want cropped thumbnails, and I'd like them to scale by the longest side, not the shortest. That's the problem I'm having.
Thanks for that link. I did the code changes, only it appears to have fixed nothing for me. Do I have to change something specific in my theme as well?
Gallery URL: http://shriker.ca/archive/design/ *
Current version ZenPhoto 1.1.3.
Theme: default
image display options
I've also tried clearing my thumbnail cache, but those particular thumbs keep on coming back the same way.
try putting in 130 for Crop thumbnail width and Crop thumbnail height
This may be a related problem...
I'm trying to get my thumbnails to not be cropped at all, so that the user can preview the entire image as a miniature before clicking it and opening it full size.
Right now my gallery crops the image to a square in the middle of the image. How do I do this?
I did. No love.
Here's what I have:
Image Quality: 100
Thumbnail Quality: 100
Image Size: 800
Images size is longest size: On
Allow upscale: Off
Thumb size: 100
Crop thumbnails: On
Crop thumbnail width: 100
Crop thumbnail height: 100
This is what it looks like:
It doesn't change anything (I had it off to begin with). See, now it's off and it looks the same: http://zerflin.us/ZenPhoto/index.php?album=works
OK, something got screwed up along the way.
In functions.php in the function getImageParameters the first line of code now reads:
$thumb_crop = ('thumb_crop');
is should read:
$thumb_crop = getOption('thumb_crop');
We will get this fixed in a nightly build shortly.