Is it possible to scale and crop

See all posts Reply

Is it possible to scale and crop new!
by Steve, 17 years, 5 months ago
The reason I'm asking is because I'd like to scale thumbnail as close as possible to my target size and then crop the xtras.Reply
Re: Is it possible to scale and crop new!
by colin, 17 years, 5 months ago
There is a new feature in version 0.21RC which does what you want.

Use the following setting:
$foo->image_ratio_crop   = true;
$foo->image_convert      = 'jpg';
$foo->image_resize       = true;
$foo->image_x            = 100;
$foo->image_y            = 50;

That will resize the image so that it fills 100x50, and then it will crop the extra bits.Reply