amazing development » Braindump http://amazing-development.com ruby, java and the rest Fri, 29 Nov 2013 18:57:08 +0000 en-US hourly 1 http://wordpress.org/?v=3.4.2 Quickly convert images with ImageMagick http://amazing-development.com/archives/2011/03/20/convert-images-with-imagemagick/ http://amazing-development.com/archives/2011/03/20/convert-images-with-imagemagick/#comments Sun, 20 Mar 2011 11:22:25 +0000 Frank Spychalski http://amazing-development.com/?p=479 I just spent a few minutes looking for a tool to convert a small number of PNG files to JPG on Mac OS. It was just a few dozen files but so in the end fell back to the good old command line because I don’t like graphical interfaces for these tasks.

For future reference:
for file in *.png; do jpg="$(basename \\"$file\\" .png).jpg"; convert "$file" "$jpg"; done

Yes, it’s that simple once you have installed ImageMagick.

]]>
http://amazing-development.com/archives/2011/03/20/convert-images-with-imagemagick/feed/ 3