Batch resize images based on percentage using ImageMagick

The morgify command in conjunction with the -resize flag can be used to batch resize a collection of images.

The command below will find all images in the current directory with a .png extension and resize them to 40% of their original size.

$ mogrify -resize 40% *.png