Ever had to put up some ad on Craigslist or Ebay only to be told your photo filesize is too large? Life is too short to manually resize and compress multiple files to the appropriate specs. Also you might want to remove your (sometimes sensitive) metadata as well before uploading. ImageMagick has you covered!
Below I'll be keeping a list of my most used commands for batch image processing. You'll find that this covers most of the real-world use-cases.
sudo pacman -S imagemagick
Stripping metadata (EXIF)
mogrify -strip *.JPG
Resizing image by half
mogrify -resize 50% *.JPG
Of course you can combine all of these arguments
mogrify -resize 50% -strip *.JPG