Reply to Re: crop using coordinates?

Re: crop using coordinates? new!
by colin, 16 years, 2 months ago
Try something like this:
if ($handle->uploaded) {
  if ($handle->file_is_image) {
    $handle->image_convert = 'jpg';
    $handle->image_crop = array($y1, $handle->image_src_x - $x2, $handle->image_src_y - $y2, $x1);
    $handle->process('/my/dir/');
  }
}
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