The simpler media website CMS
`Shouldn't be scaling by longest 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 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
`
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
`
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!
Have you tried Trisweb's suggestion?
Gallery URL: http://shriker.ca/archive/design/ *
* Has two examples of really long thumbnails that I wish were scaled properly.
Current version ZenPhoto 1.1.3.
Theme: default
image display options
- Image size: 595
- Images size is longest size: checked
- Thumb size: 130
- Crop thumbnails: not checked
- Crop thumbnail width: blank
- Crop thumbnail height: blank
I've also tried clearing my thumbnail cache, but those particular thumbs keep on coming back the same way.
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?
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:
http://zerflin.com/ZenPhoto/index.php?album=works
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.
Now I have another question... it appears as though the "Thumb size:" checkbox dictates how big the thumbnail is on shortest side... is there a way to make it define the longest size instead?
Here's how it looks now: http://zerflin.us/ZenPhoto/index.php?album=works