LinuxCommandLibrary

magick

Convert, edit, and compose images

TLDR

Convert between image formats

$ magick [path/to/input_image.png] [path/to/output_image.jpg]
copy

Resize an image, making a new copy
$ magick [path/to/input_image.jpg] -resize [100x100] [path/to/output_image.jpg]
copy

Create a GIF out of all JPEG images in the current directory
$ magick [*.jpg] [path/to/images.gif]
copy

Create a checkerboard pattern
$ magick -size [640x480] pattern:checkerboard [path/to/checkerboard.png]
copy

Create a PDF file out of all JPEG images in the current directory
$ magick [*.jpg] -adjoin [path/to/file.pdf]
copy

SYNOPSIS

magick options input_file operation output_file
OR
magick command options

PARAMETERS

-adaptive-blur
    Adaptive blur pixels.

-blur
    Reduce image noise.

-bordercolor
    Border color.

-crop
    Crop the image.

-resize
    Resize the image.

-rotate
    Rotate the image.

-format
    Image format type.

input_file
    The path to the input image file.

output_file
    The path to the output image file.

DESCRIPTION

magick is the command-line interface to ImageMagick, a software suite to create, edit, compose, or convert bitmap images. It can read and write images in a variety of formats (over 200) including DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, SVG, and TIFF. ImageMagick is used to display, convert, and edit raster image files. Image adjustments are easily performed through the command line, allowing users to convert image types, resize, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more. It is a powerful tool for both simple image manipulation and complex automated image processing workflows. Many different command line tools are available depending on the action which needs to be performed. For most common operations, 'magick' command suffices. Other commands are identify, convert, compare, mogrify.

EXAMPLES

Converting an image: magick input.jpg output.png
Resizing an image: magick input.jpg -resize 50% output.jpg
Creating a thumbnail: magick input.jpg -thumbnail 100x100 output.jpg

HISTORY

ImageMagick was initially developed by John Cristy at DuPont in 1987. The 'magick' command is a more recent addition that consolidates the functionality of several older ImageMagick commands into a single, more versatile interface. Its development aimed to simplify common image manipulation tasks and improve the overall user experience.

SEE ALSO

convert(1), identify(1), mogrify(1), compare(1)

Copied to clipboard