resize and crop image and keep proportion

See all posts See thread Reply

Re: resize and crop image and keep proportion new!
by colin, 11 years, 2 months ago
Try this for instance:
$foo->image_resize          = true;
$foo->image_ratio_crop = true;
$foo->image_y = 305;
$foo->image_x = 300;Reply
Re: resize and crop image and keep proportion new!
by sergio, 11 years, 2 months ago
what if I have the X number for the Y can be a variable and keep it constant to the X value?Reply
Re: resize and crop image and keep proportion new!
by colin, 11 years, 2 months ago
Please read the docs and see the code example on the main pageReply
Re: resize and crop image and keep proportion new!
by sergio, 11 years, 2 months ago
I have, I been using:

$handle->image_resize = true;
$handle->image_x = 690;
$handle->image_ratio = true;


and it makes the size of the image to 226 x 150 it makes no sense...Reply
Re: resize and crop image and keep proportion new!
by sergio, 11 years, 2 months ago
NVM... I got it, i made the x a huge number so no matter what the ratio it the smaller number of 690

thanksReply