Media/Image Manipulation

From Linux Hints

Jump to: navigation, search

Of course, you can fire up The Gimp or similar, but some things need to be in scripts, and sometimes it's just easier from the command line.

Scale an image

You need the 'imagemagick' package:

convert -geometry 300 input.jpg output.jpg

This makes the output image 300 pixels wide, and scales the height in proportion. Imagemagick can handle a wide range of formats.

related