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!