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.


Er, these are some nice, well-known convert (from ImageMagick) commands, but what has it do with *batch* conversion? Where’s the batch?
I have created a shell script that makes the process of batch image conversion.
Well it is batch if you just place an asterisk as input file. All the extracted files will have the format as the output filename plus a number. So for example:
convert -quality 70% * foto.jpg
will produce a number of fotos:
foto-0.jpg, foto-1.jpg etc