getCustomImage and correct proportions?

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!

Comments

  • fretzl Administrator, Developer
    What does your function look like now ?
  • acrylian Administrator, Developer
    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)`
  • fuzzi Member
    fantastic, thanks alot acrylian, it works perfeclty :)
Sign In or Register to comment.