LinuxCommandLibrary

magick-mogrify

Perform operations on multiple images, such as resizing, cropping, flipping, and adding effects.

TLDR

Resize all JPEG images in the directory to 50% of their initial size

$ magick mogrify -resize [50%] [*.jpg]
copy


Resize all images starting with DSC to 800x600
$ magick mogrify -resize [800x600] [DSC*]
copy


Convert all PNGs in the directory to JPEG
$ magick mogrify -format [jpg] [*.png]
copy


Halve the saturation of all image files in the current directory
$ magick mogrify -modulate [100,50] [*]
copy


Double the brightness of all image files in the current directory
$ magick mogrify -modulate [200] [*]
copy

Copied to clipboard