Resize question

See all posts See thread Reply

Re: Resize question new!
by Pol, 10 years, 2 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