Imagemagick Mogrify is an easy to use, ligte, command prompt tool and capable of editting most of the image types.
Using Mogrify:
If you want to transform all the .tiff images in a directory to .jpg, you can do it with a single command:
mogrify -format jpeg *.tiff
Create thumbnails using this command:
mogrify -geometry 120x120 *.jpg
To reduce the size of any given image, use this command:
mogrify -resize 50% *.jpg
You can resize all your JPEG images in a folder to a maximum dimension of 256x256 with this command:
mogrify -resize 256x256 *.jpg
Convert PNG images to the JPEG format:
mogrify -format jpg *.png
Rotate an Image using this command
mogrify -rotate "-90" test.jpg
Reduce Colours of any given image using this command
mogrify -colors 2 test.jpg
Monochrome the given image using this command
mogrify -monochrome test.jpg
Add Borders to given image using this command
mogrify -border 2x4 test.jpg
Add Annotate to Image using this command
mogrify -comment 'My holiday highlight' test.jpg
Add some more Decorative Border using this command
mogrify -frame 20x20 test.jpeg
For more information about the ImageMagick project, visit http://www.imagemagick.org.
Run ‘mogrify -help’ to get a summary of the mogrify command options.
source:http://linuxpoison.blogspot.com/2010/08/135781677513546.html