ZenphotoCMS Forum
Version 1.2.2. Images are cropped, even when disabled - 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: Version 1.2.2. Images are cropped, even when disabled (/thread-4175.html)



Version 1.2.2. Images are cropped, even when disabled - jackdaw - 2008-12-02

I disabled the cropping of images to see my images and thumbs as they are, uncropped.
After ugrading from 1.2.1. to 1.2.2. this feature is still disabled under theme options, but in reality the thumbs of the albums are cropped, but those of the imagethumbs are not.

A little bug I guess. Hope you find a fix soon.
See it here




Version 1.2.2. Images are cropped, even when disabled - sbillard - 2008-12-03

To see thumbs of uncropped images you need to be using the ...ThumbMaxSpace functions.




Version 1.2.2. Images are cropped, even when disabled - jackdaw - 2008-12-03

Imho I think we have a misunderstanding here, because I'm using my own theme from 1.2.1. and the thumbs are shown uncropped for the imagethumbs but it's just the albumthumbs that are cropped. I didn't change anything about my theme.
Using printCustomAlbumThumbMaxSpace() is in the case I want to control the exaxt dimensions, but I want to use uncropped images with the give 'longest side' as entered in the theme options page. When I use printCustomAlbumThumbMaxSpace() and set the dimension to max 150 with and max 150 height I get square thumbs and I don want that.

I've used this in my theme of 1.2.1 and it always gave me the correct uncropped albumthumbs:
printAlbumThumbImage(getAlbumTitle())

And when I use this:
printCustomAlbumThumbMaxSpace('',150,150,'',NULL,false)
I get cropped images again.




Version 1.2.2. Images are cropped, even when disabled - acrylian - 2008-12-03

Actually the ...thumbmaxspace functions should work for album thumbs, too. I will try to reproduce that later.




Version 1.2.2. Images are cropped, even when disabled - jackdaw - 2008-12-03

I'm sorry to 'bother' you again, but with this code:
printCustomSizedImageThumbMaxSpace(getAnnotatedImageTitle(),150,150,'','')
in my search.php I also get square cropped images, so it seems this is even working for the imagethumbs... and in my admin I really have 'cropped' unchecked.

I used this code before and that went ok:
if (getFullWidth() === getFullHeight() OR getFullWidth() > getFullHeight()) { printCustomSizedImage(getImageTitle(), null, 150, null); } else { printCustomSizedImage(getImageTitle(), null, null , 150); }




Version 1.2.2. Images are cropped, even when disabled - acrylian - 2008-12-03

Really, do this function still not work correctly....Unbelievable how these quite small functions bug us... We will check that.




Version 1.2.2. Images are cropped, even when disabled - acrylian - 2008-12-03

Unfortunatly I am able to reproduce that something is not correct here. So far printCustomAlbumThumbMaxSpace() seems only to work uncropped if the width and height are not set to the same value. 151x150 gives me uncropped album thumbs but somehow they are stretched in widht or height then.
printCustomSizedImageThumbMaxSpace shows the same behaviour but does not stretch the thumbs.

I am really confused because the last time sbillard and I worked on that maxspace functions and checked that did work... I swear...




Version 1.2.2. Images are cropped, even when disabled - jackdaw - 2008-12-03

I believe you when you say it worked , but ZenPhoto gets more and more code and I guess it gets harder to predict the outcome of one change to everything else?
But I'm sure this will be solved. Hopefully it will take not too long though, I was so happy I finally got my not squared or cropped thumbs to nicely center inside a box :=).