magick-mogrify
Perform operations on multiple images, such as resizing, cropping, flipping, and adding effects. tldr-pages
On several platforms
Several platforms
Perform operations on multiple images, such as resizing, cropping, flipping, and adding effects. Changes are applied directly to the original file.
Resize all JPEG images in the directory to 50% of their initial size
magick mogrify -resize 50% *.jpgIdentifyResize all images starting with DSC to 800x600
magick mogrify -resize 800x600 DSC*IdentifyConvert all PNGs in the directory to JPEG
magick mogrify -format jpg *.pngIdentifyHalve the saturation of all image files in the current directory
magick mogrify -modulate 100,50 *IdentifyDouble the brightness of all image files in the current directory
magick mogrify -modulate 200 *IdentifyReduce file sizes of all GIF images in the current directory by reducing quality
magick mogrify -layers 'optimize' -fuzz 7% *.gifIdentifyDisplay help
magick mogrify -helpIdentify