![]() |
|
Problems with custom thumbnails and crop positions - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Themes (https://forum.zenphoto.org/forum-5.html) +--- Thread: Problems with custom thumbnails and crop positions (/thread-5152.html) Pages:
1
2
|
Problems with custom thumbnails and crop positions - sbillard - 11-05-2009 Did you use the code above? The error you are getting indicates that the $thumb variable was not setup. I don't really see how that could happen, though. Problems with custom thumbnails and crop positions - Megan - 11-05-2009 It's getting a url for the $thumb, it's the getHeight/getWidth that doesn't work. This is what I have right now just for testing: ` ` Problems with custom thumbnails and crop positions - sbillard - 11-05-2009 Ok, sorry, my fault. I gave you the wrong function to use. Change Problems with custom thumbnails and crop positions - Megan - 11-05-2009 That's much better! Now for one more small problem: When I render the tumbnails using printCustomAlbumThumbImage it's setting the height and width attributes of the `` to the value of cropx and cropy. In template_functions.php it looks like it's is choosing whichever is higher, width or cropx, and then setting the width="" attribute to that (???). Since cropx is relative to the [i]original[/i] image it's going to be bigger than the thumb size. So I get thumbnails that are resized using the height/width attributes to something like 1450 x 1450 (or whatever the size of the original image was). I can fix this by changing max to min or just removing the $settings variable from the ``. It is generating the thumbnails correctly. Here's my current function: ` ` Problems with custom thumbnails and crop positions - sbillard - 11-05-2009 I'll have to look into how to deal with this issue. The sizing is really only needed if there is no album thumb image. In the mean time, just set $sizing to "". Problems with custom thumbnails and crop positions - sbillard - 11-05-2009 Ok, I've made some changes to the development stream to deal with this. Install tonight's nightly for the correction. |