mogrify.im6

ImageMagick 6 version of mogrify

TLDR

Resize all JPEG images in place to fit within 800x600
$ mogrify.im6 -resize [800x600] [*.jpg]
Convert all JPEG images to PNG format
$ mogrify.im6 -format [png] [*.jpg]
Convert format and write output to a specific directory
$ mogrify.im6 -format [png] -path [output_dir] [*.jpg]
Rotate all images by 90 degrees clockwise
$ mogrify.im6 -rotate [90] [*.jpg]
Set JPEG compression quality (0-100)
$ mogrify.im6 -quality [80] [*.jpg]
Strip all metadata and profiles from images
$ mogrify.im6 -strip [*.jpg]
Crop images to a specific region
$ mogrify.im6 -crop [640x480+50+50] [*.jpg]

SYNOPSIS

mogrify.im6 [options] files

DESCRIPTION

mogrify.im6 is the ImageMagick 6 version of mogrify. It modifies images in place, unlike convert which writes to a different output file. It is designed for batch processing, applying the same set of transformations to multiple files at once.When using -format to change the output type, new files are created with the appropriate extension. Use -path to write converted files to a separate directory and avoid overwriting originals.

PARAMETERS

FILES

Image files to modify in place.
-resize GEOMETRY
Resize image to fit within the given dimensions (e.g., 800x600, 50%).
-format TYPE
Convert image to the specified format (e.g., png, gif, tiff). Output files are written alongside originals with a new extension.
-path DIRECTORY
Write output files to the specified directory instead of overwriting originals.
-rotate DEGREES
Rotate image by the given number of degrees clockwise.
-quality VALUE
Set compression quality (0-100 for JPEG/PNG, higher is better quality).
-strip
Remove all image profiles, comments, and metadata.
-crop GEOMETRY
Crop image to the specified geometry (WxH+X+Y).
-blur RADIUSxSIGMA
Apply Gaussian blur with given radius and sigma.
-colorspace TYPE
Set the image colorspace (e.g., sRGB, Gray, CMYK).
-auto-orient
Rotate image based on EXIF orientation tag and remove the tag.
-thumbnail GEOMETRY
Resize and strip profiles, optimized for creating thumbnails.
--help
Display help information.

CAVEATS

Overwrites original files by default unless -format or -path is used. This is the ImageMagick 6 specific variant; use mogrify for ImageMagick 7.

SEE ALSO

mogrify(1), convert(1), identify(1), composite.im6(1), identify.im6(1)