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
Comments
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.
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);
}
`
`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...
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 :=).