Reply to Re: If width larger, resize x or if height larger resize y

Re: If width larger, resize x or if height larger resize y new!
by Ahmet Kemal, 14 years, 4 months ago
Hi Colin,

Thank you for your inspiration. What I want was not what you told but I learned how to get original image sizes thanks to your post. What I actually want is:
if ( $handle->image_src_y > $handle->image_src_x ) {
  $handle->image_ratio_x = true;
  $handle->image_y = 80;
} else {
  $handle->image_ratio_y = true;
  $handle->image_x = 80;
}

Thanks again,Reply

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important