![]() |
|
Thumbnail scaling - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Thumbnail scaling (/thread-1013.html) Pages:
1
2
|
Thumbnail scaling - Alenonimo - 2006-12-25 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 ` Thumbnail scaling - trisweb - 2006-12-31 You're right, it should be an option. When I move to a new admin system, I'll make an options panel with a good interface for defining what thumbs should look like by default... Thumbnail scaling - TonySoprano - 2007-03-17 ` // 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! Thumbnail scaling - trisweb - 2007-03-18 I would edit the theme files, not i.php -- change the image printing function into getCustomThumbURL or something like that. Take a look at the Stoppeddesign theme included with Zenphoto to see how that's done. Thumbnail scaling - davegreenwood - 2007-04-04 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? Thumbnail scaling - Tak - 2007-11-12 I'm also looking to scale thumbnails by the longest side of the image as well. I'm using 1.1.2. Scaling by the shortest side is giving me some really awkward looking thumbnails... and I don't really like the cropped ones. Thumbnail scaling - Tak - 2007-11-19 Is there any chance that there's a "quick fix" for this? I've already tried looking at the code myself... but honestly, math just makes my eyes cross. Thumbnail scaling - Tak - 2007-12-08 -pokes at things with a stick- Thumbnail scaling - sbillard - 2007-12-08 Tak: Have you tried Trisweb's suggestion? Thumbnail scaling - Tak - 2007-12-20 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. Thumbnail scaling - AlexWilson - 2007-12-20 http://www.zenphoto.org/support/topic.php?id=1455&replies=4#post-11990 Thumbnail scaling - Tak - 2007-12-20 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. image display options
I've also tried clearing my thumbnail cache, but those particular thumbs keep on coming back the same way. Thumbnail scaling - AlexWilson - 2007-12-21 try putting in 130 for Crop thumbnail width and Crop thumbnail height Thumbnail scaling - Tak - 2007-12-22 That worked. Thanks! Thumbnail scaling - benjancewicz - 2008-01-02 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? Thumbnail scaling - sbillard - 2008-01-03 Reset the "crop Thumbnails" option. Thumbnail scaling - benjancewicz - 2008-01-03 I did. No love. Here's what I have: Image Quality: 100 This is what it looks like: http://zerflin.com/ZenPhoto/index.php?album=works Thumbnail scaling - sbillard - 2008-01-03 If you have crop thumbnails on, they will get cropped. Reset means not checked. Thumbnail scaling - benjancewicz - 2008-01-03 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 Thumbnail scaling - sbillard - 2008-01-03 OK, something got screwed up along the way. In functions.php in the function We will get this fixed in a nightly build shortly. |