Reply to Resize Images Centered And Scaled

Resize Images Centered And Scaled new!
by Erik Greif, 10 years, 5 months ago
When I set my upload like this:
if (($handle->image_src_x) > 1024 or ($handle->image_src_y) > 1024) {
  $handle->image_resize   = true;
  $handle->image_y        = 1024;
  $handle->image_x        = 1024;
  $handle->image_ratio    = true;
}
$handle->file_new_name_body = $_title;
$handle->image_convert      = 'jpg';

On an image with a greater width than height the rendered 'thumbnail' is cropped from the left of the photo. So portraits are off center. How do I force this to grab the cropped image from the center of the scaled image?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