Resize by x OR y

See all posts See thread Reply

Re: Resize by x OR y new!
by colin, 18 years, 2 months ago
It makes sense ;)

Use
$foo->image_ratio = true;
$foo->image_x = 200;
$foo->image_y = 200;

So the image will fit within 200x200, and the ratio will be maintained.

This is in the doc by the way:
image_ratio if true, resize image conserving the original sizes ratio, using image_x AND image_y as max sizes if true (default: false)Reply