If width larger, resize x or if height larger resize y

See all posts See thread Reply

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