Resizing images by percentage, in batch, from the command line

In Mac OS.

Imagemagick does the trick. I use homebrew, so:

brew install imagemagick

To resize all images in a given folder to 50%:

for f in *; do convert $f -resize 50% $f; done

Comments