ZenphotoCMS Forum
Album thumb stretched - 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: Album thumb stretched (/thread-5515.html)



Album thumb stretched - fana - 2009-07-23

Hello,

I'm using zenphoto 1.2.3 with Thinkdreams theme. The album thumbnails are generated using the function like this:
printCustomAlbumThumbImage(getAlbumTitle(), null, 280, 130, 280, 130, 0, 0, 'reflect', null);
This way, the original photo is 650x433px and gets resized and cropped to 280x130px.

The problem is that one of my album thumbnail images is already 280x130px and gets stretched anyway, when it should remain untouched.

Is there any option to prevent this?

Thanks.




Album thumb stretched - acrylian - 2009-07-23

The thinkdreams theme is unsupported but there is an option to disallow upscaling of images smaller than the set size.




Album thumb stretched - fana - 2009-07-23

Thank you for the quick answer acrylian.

I already had the option for upscaling disabled. The result is the same. If I use an image with 280x130px it gets stretched and cropped when it shouldn't.

No luck for this problem?




Album thumb stretched - acrylian - 2009-07-23

I believe this has never been tested at all (generally images are bigger than the thumbs). Anyway, I would first recommend to try the recent 1.2.5 release, too.




Album thumb stretched - sbillard - 2009-07-23

Are you watermarking the images?




Album thumb stretched - fana - 2009-07-23

No, i'm not watermarking the images.

The thing is, the original image was bigger than the thumb but the resulting cropped area wasn't ok because it cropped the center of the image. So I cropped the image in Photoshop with the final thumbnail size (280x130px) to overcome this problem.

So, when I choose this image to be the album thumbnail, it gets cropped and stretched. What it should do is ignore the crop function if the image size is equal the given parameters...

But I'll try to upgrade to latest version...

Thanks for your help so far!




Album thumb stretched - sbillard - 2009-07-23

If there is no watermarking or other needed processing the image itself should be returned. I think, though, that if there is processing needed the crop will be applied.