Batch Processing Images in Ubuntu with Image Magick
Posted: May 15th, 2009 | Author: James | Filed under: linux | Tags: convert, imagemagick, linux | No Comments »The main point of this blog post is so that I have a resource next time I need to do this job. I’ve recently been presented with thousands of images that need to be converted to different sizes and didn’t really want to go to the hassle of installing some 3rd party utility or writing a script.
ls *.png | xargs -I {} convert -thumbnail 200 {} thumb.{}
You can add whatever arguments are required to the convert command. In this case i’ve specifed a thumbnail with a width of 200px. The brackets {} represent the file you’re operating on so in the example above the new image has thumb. prepended to the filename.