How do I crop an image.

See all posts Reply

How do I crop an image. new!
by Simon, 11 years, 10 months ago
I want to create a thumbnail of my images.
I want the thumbnail to be a 320x200 crop of the original image without re-sizing.

I tried image_crop = "320 200"

I also tried image_crop = "0 320 200 0

But am getting no where, can someone please help??

Thanks!!!Reply
Re: How do I crop an image. new!
by colin, 11 years, 10 months ago
I suppose you want to *keep* an area of 320x200, is that right?

In that case, it depends on the original dimension of your image. You would need something like this:
$handle->image_crop = array(
  $original_height - 200 / 2,
  $original_width - 320 / 2
);
Reply