Album thumb stretched

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.

Comments

  • acrylian Administrator, Developer
    The thinkdreams theme is unsupported but there is an option to disallow upscaling of images smaller than the set size.
  • fana Member
    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?
  • acrylian Administrator, Developer
    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.
  • Are you watermarking the images?
  • fana Member
    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!
  • 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.
Sign In or Register to comment.