Batch Resize from Command Line

Published on August 9, 2010, by in linux.



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!

Related posts:

  1. How To Strip EXIF Data

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

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

Home linux Batch Resize from Command Line
© Copyleft scottlinux.com CC BY-SA 3.0