Forrest logo
tool overview
On this page you find all important commands for the CLI tool mogrify. If the command you are looking for is missing please ask our AI.

mogrify

Mogrify is a command-line tool used for batch processing and transforming images. It is part of the ImageMagick software suite, which provides various image manipulation capabilities. Mogrify can be used to resize, rotate, crop, adjust colors, add effects, and perform many other operations on images. One of its key features is its ability to process multiple images in a single command, making it useful for bulk image editing. Mogrify supports a wide range of image formats, including JPEG, PNG, GIF, BMP, and TIFF. The tool offers a variety of options and parameters to fine-tune the image editing process, allowing users to customize their desired transformations. It supports various image manipulation techniques like resizing by scaling, cropping, adding borders, or even applying complex filters and effects. Mogrify can also be used to convert image formats, and it provides options to specify the output format and compression level. The tool can be integrated into scripts or used directly from the command line, making it a powerful choice for automating image processing tasks. Mogrify is available on various platforms, including Windows, macOS, and Linux, making it accessible to a wide range of users.

List of commands for mogrify:

  • mogrify:tldr:0a8c7 mogrify: Convert all PNGs in the directory to JPEG.
    $ mogrify -format ${jpg} ${*-png}
    try on your machine
    explain this command
  • mogrify:tldr:43568 mogrify: Resize all JPEG images in the directory to 50% of their initial size.
    $ mogrify -resize ${50%} ${*-jpg}
    try on your machine
    explain this command
  • mogrify:tldr:92abb mogrify: Halve the saturation of all image files in the current directory.
    $ mogrify -modulate ${100,50} ${*}
    try on your machine
    explain this command
tool overview