Friday, October 30, 2009

Batch Conversion of Image Files

To convert eps files to png, one can use imagemagick's convert and the good old find along with the -exec option: find -name '*.eps' -exec convert {} {}.png \; However, there is an easier command: mogrify -format png *.eps will do the job more elegantly. Using the -path png will output the images in a folder named png instead of the current folder. Imagemagick has some other useful commands: - display : Displays the image - montage : Concatenates several images - animate : Animates several images man imagemagick for more.

No comments: