Crop from existing file to new X & Y

See all posts See thread Reply

Re: Crop from existing file to new X & Y new!
by colin, 12 years, 1 month ago
Most simply:
$foo->image_resize = true;
$foo->image_x = $image_width;
$foo->image_y = $image_height;

If you want to keep aspect ratio, and remove extra parts of the image that don't fit, you can add:
$foo->image_ratio_crop = true;
Reply