Reply to Re: Crop settings

Re: Crop settings new!
by colin, 11 years ago
Do not use image_ratio_crop for that purpose.

In order to fill in precise dimensions, you need to use _image_ratio_crop_ (or _image_ratio_fill):
$handle->image_resize     = true;
$handle->image_ratio_crop = true;
$handle->image_x          = 1500;
$handle->image_y          = 550;

image_ratio_crop will resize the image so that your surface is covered, cutting out extra parts of the image. image_ratio_fill will resize the image so that it fits all in your surface, and will fill in the rest with a color (or transparency).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