04 May 2010

Arbitrary scaling using ImageMagick

It took me a little while to blunder across the info, but using ImageMagick tools (like “convert”) results in the aspect ratio being retained, so an 800x600 image will scale to 640x480 but not 720x480.

Add a shriek (exclamation mark) to the end of the dimensions. To do the above, “-scale 720x480!” (often, the ! must be prefixed with a \).

No comments: