LinuxCommandLibrary

mogrify.im6

Batch image processing and format conversion

SYNOPSIS

mogrify.im6 [options] file...

PARAMETERS

-resize WxH
    Resizes the image. Dimensions can be absolute (e.g., 640x480) or percentage (e.g., 50%).

-format type
    Converts the image to the specified format (e.g., `jpeg`, `png`, `gif`).

-rotate degrees
    Rotates the image by the specified degrees.

-quality value
    Sets the compression level for formats like JPEG (0-100, higher is better quality).

-strip
    Removes image profiles and comments, reducing file size.

-auto-orient
    Automatically rotates the image based on EXIF orientation tag.

-path directory
    Writes the modified image to the specified directory instead of overwriting in place.

-monochrome
    Converts the image to black and white.

-modulate brightness,saturation,hue
    Adjusts brightness, saturation, and hue of the image.

-verbose
    Enables verbose output, showing details of the image processing.

DESCRIPTION

The `mogrify.im6` command is a powerful utility from the ImageMagick 6 suite designed for in-place modification of image files. Unlike `convert`, which creates a new image file, `mogrify` directly overwrites the original image with the modified version. This makes it efficient for batch processing where disk space is a concern or when the original files are no longer needed.

It supports a vast array of image manipulation operations, including resizing, rotating, flipping, converting image formats, applying various visual effects (like blurring, sharpening, color adjustments), adding watermarks, and optimizing images. The `.im6` suffix specifically indicates that this command is part of the ImageMagick version 6 binaries, which is important for compatibility as ImageMagick 7 introduced some changes in syntax and default behaviors. Users should exercise caution due to its destructive nature, ideally working on backups or in a test environment.

CAVEATS


In-Place Modification: `mogrify.im6` overwrites original files. Always back up important images before using it.
ImageMagick Version: The `.im6` suffix denotes ImageMagick version 6. Syntax and behavior might differ from ImageMagick 7 (`magick mogrify`).
Performance: For very large batches or high-resolution images, processing can be resource-intensive and time-consuming.

<B><I>SAFETY PRACTICES</I></B>

Due to `mogrify.im6`'s destructive nature, it's highly recommended to either work on copies of your images or use the `-path` option to save modified files to a different directory. This prevents accidental loss of original data.

<B><I>DISTINCTION FROM `CONVERT`</I></B>

While `mogrify.im6` modifies images in place, `convert.im6` (or `magick convert` in IM7) creates a new image file, leaving the original untouched. Choose `mogrify` for batch overwrites and `convert` for creating new versions or formats.

HISTORY

ImageMagick, the software suite `mogrify` belongs to, began development in 1987. `mogrify` has been a core utility within the suite for many years, providing a powerful command-line interface for batch image processing. The explicit `mogrify.im6` naming usually signifies a system where ImageMagick version 6 binaries are installed alongside or separately from newer versions (like ImageMagick 7), allowing users to specifically invoke the older version for compatibility or specific behavior. This often occurs on systems that support multiple ImageMagick installations or where packages provide versioned binaries.

SEE ALSO

convert(1), identify(1), display(1), magick(1), composite(1)

Copied to clipboard