Batch Resize from Command Line

By | 2010/08/09

How can I batch resize photos in Linux via the command line?

Yet again ImageMagick is your friend. With one little command you can resize an entire directory of photos.


First, install ImageMagick if you haven’t already:

sudo apt-get install imagemagick

Then simply run this command below, altering as desired:

mogrify -resize 1024x768 *.jpg

You can of course do this action on other file types (.jpeg, .png, etc).

Warning! There is no undo! This is destructive. Make a copy of photos to alter and keep your originals separate!

Sweet!

Leave a Reply

Your email address will not be published. Required fields are marked *

Notify me of followup comments via e-mail. You can also subscribe without commenting.