Batch Resize Images Using ImageMagick
For your website, often you need to resize a directory full of images to an appropriate size before uploading them.
If you’re using Linux and have ImageMagick installed, one of the easiest ways to do this is with the command:
mogrify -resize 1200x1200 -format jpg *.JPG
Or some variation.