Page 1 of 1

How to do forced scaling with change of aspect ratio?

Posted: 2009-05-06T11:40:14-07:00
by ptai
-- Just changing the subject to make the question clearer.

How do you do the equivalent of "convert .... -resize '400x300!' ..." or "convert .... -resize '120x80%' ..." in PHP Imagic?

The resizeImage and scaleImage functions seem to always preserve aspect ratio.

Thanks.

Re: How to do forced scaling with change of aspect ratio?

Posted: 2009-05-10T14:50:34-07:00
by mkoppanen
If you provide width and height the aspect ratio is not maintained.