Resizing And Keeping Ratio

See all posts Reply

Resizing And Keeping Ratio new!
by riscphree, 16 years, 5 months ago
I would like to resize images if they are too small or too large. Right now it works great for images that are too large. However, I would like all image to have max width and height and still keep ratio. This is what I'm using and works great for large images but doesn't make smaller images larger:
$foo->image_resize = true;
$foo->image_ratio = true;
$foo->image_x = 264;
$foo->image_y = 400;
$foo->Process('images/users');
Reply
Re: Resizing And Keeping Ratio new!
by colin, 16 years, 5 months ago
Instead of:
$foo->image_ratio = true;

You can try one of the following (one at a time):
$foo->image_ratio_no_zoom_in = true;
$foo->image_ratio_crop = true;
$foo->image_ratio_fill = true;
Reply
Re: Resizing And Keeping Ratio new!
by riscphree, 16 years, 5 months ago
Awesome, $foo->image_ratio_crop = true;

that worked.Reply