Member
Member
fuzzi   2012-05-30, 09:29
#1

Hi,

i wonder how to tell the getCustomImage() function to leave the image proportions as they were, when the original-image is upright and the customimage is in landscape format?

I always get heavily squeezed images when the original image is higher than the customimage i want to render it to.

like here: http://www.dieleinwand.de/leinwandbilder/Albrecht-Duerer/

Do you have a clue how the correct parameters are for the getCustomImage function? I triend around with a thousand different settings but i had no luck.

thanks for your help!

Administrator
Administrator
fretzl   2012-05-30, 10:07
#2

What does your function look like now ?

Administrator
Administrator
acrylian   2012-05-30, 15:12
#3

It is a little complicated, you have to use a mixture of cropx/y and crop height and width. Only cropwidth/height is not enough. Here is the example for the thumbs on our site's showcase section:

printCustomSizedImage(getBareImageTitle(), NULL, 255, 128, 255, 128,NULL,NULL,"thumbnail",NULL,true,false)

Member
Member
fuzzi   2012-05-31, 10:29
#4

fantastic, thanks alot acrylian, it works perfeclty

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.