Resizing based on smaller side.

See all posts See thread Reply

Re: Resizing based on smaller side. new!
by colin, 12 years, 2 months 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