Reply to Re: Problem with rezising images ...

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

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