Reply to Re: Resize question

Re: Resize question new!
by Pol, 9 years, 8 months ago
I think I found a solution. I'm sharing it here in case someone is facing the same problem:

$handle->image_ratio          = true;
if($handle->image_src_x < $handle->image_src_y) {
  $handle->image_ratio_y      = false;
  $handle->image_ratio_fill   = true;
} else {
  $handle->image_ratio_y      = true;
  $handle->image_ratio_fill   = false;
}

Best regards,
PolReply

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