Reply to Re: Resizing based on smaller side.

Re: Resizing based on smaller side. new!
by colin, 12 years, 1 month ago
You can find out the smallest side like this:
if ($handle->image_src_x < $handle->image_src_y) {
    $handle->image_x = 50;
    $handle->image_ratio_y = true;
} else {
    $handle->image_y = 50;
    $handle->image_ratio_x = true;
}  
$handle->process(...);
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