Problem with rezising images ...

See all posts See thread Reply

Re: Problem with rezising images ... new!
by colin, 16 years ago
The class as version 0.26 cannot do what you want.

So here is a Release Candidate 0.27RC1, which implements a mean to crop before resizing.

The cropping is set with image_precrop, which accepts the same type of parameters as image_crop.

For instance:
$handle->image_precrop = array(-34, 0, 98, 100);
This will crop the image before eventually resizing it.

Note that both image_precropand image_crop can be used together. The first one crops before resizing, the second one after resizing.

The test suite looks OK, but I haven't tested it extensively. Feedback would be appreciated.Reply