Dimension

See all posts Reply

Dimension new!
by MAtthew, 17 years, 5 months ago
Hi There, I have a small prob, when i upload a landscape size image and resize using $handle->image_x = 250; The image is scaled fine, but if i uploade a portrait image the height is too much , what is the best way to resize to an area. i.e i have a box 250x250 i want the image to fit in regardless of its orientation.Reply
Re: Dimension new!
by colin, 17 years, 4 months ago
Do as following:
$handle->image_x = 250;
$handle->image_y = 250;
$handle->image_ratio = true;
Reply
Re: Dimension new!
by matt, 17 years, 4 months ago
thankyouReply