The Linux Blog UNIX, LINUX, BSD, OSX

3Feb/090

Batch convert images from the command line

A simple way to convert images in Linux is by using the command line:

convert image.jpg newImage.gif

will convert the JPG file to a GIF file.

convert -quality 78% file.jpg

will set the quality of the JPEG file to 78%

convert -resize 800×600 file.jpg

will resize the image.
Alternatively, if you wish to use a GUI tool, try Phatch.