How to batch resize images from the Linux CLI

You might find this little command useful, it allows you to create thumbnails for all the files in a particular directory:

find . -maxdepth 1 -name *.jpg -print -exec convert "{}" -resize 80×60 "thumbs/{}" \;

 

This should work on any server with ImageMagick installed and in the path.

 

ImageMagickLogoImageMagickLogo


Enjoy!