LinuxCommandLibrary

magick

primary command for ImageMagick 7+, replacing separate commands like

TLDR

Convert image format

$ magick [input.png] [output.jpg]
copy
Resize image
$ magick [input.jpg] -resize [800x600] [output.jpg]
copy
Create thumbnail
$ magick [input.jpg] -thumbnail [100x100] [thumb.jpg]
copy
Rotate image
$ magick [input.jpg] -rotate [90] [output.jpg]
copy
Add text watermark
$ magick [input.jpg] -gravity south -annotate +0+10 "[text]" [output.jpg]
copy
Batch convert
$ magick mogrify -format jpg [*.png]
copy
Create montage
$ magick montage [*.jpg] -geometry +2+2 [montage.jpg]
copy

SYNOPSIS

magick [options] input [operations] output

DESCRIPTION

magick is the primary command for ImageMagick 7+, replacing separate commands like convert, mogrify, and identify. It performs image manipulation including format conversion, resizing, and compositing.
The tool supports over 200 image formats and provides extensive transformation capabilities.

PARAMETERS

-resize geometry

Resize image.
-crop geometry
Crop image.
-rotate degrees
Rotate image.
-flip
Flip vertically.
-flop
Flip horizontally.
-quality n
JPEG/PNG quality.
-strip
Remove metadata.
-colorspace space
Convert colorspace.
-density dpi
Set resolution.
-gravity type
Positioning reference.
-annotate +x+y text
Add text.
-composite
Combine images.

CAVEATS

Complex operations need quoting. Large images use much memory. Some formats have limitations. PDF support may need Ghostscript.

HISTORY

ImageMagick was created by John Cristy in 1987. The magick command was introduced in ImageMagick 7 (2016) to unify the various utility commands under a single interface.

SEE ALSO

convert(1), identify(1), mogrify(1), montage(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community