LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

imagemagick

suite of tools for image manipulation

TLDR

Convert image format (v7 syntax)
$ magick [input.png] [output.jpg]
copy
Resize image
$ magick [input.jpg] -resize [800x600] [output.jpg]
copy
Create thumbnail
$ magick [input.jpg] -thumbnail [150x150^] -gravity center -extent [150x150] [thumb.jpg]
copy
Add text watermark
$ magick [input.jpg] -gravity south -annotate +0+10 "[Copyright]" [output.jpg]
copy
Combine images horizontally
$ magick [a.jpg] [b.jpg] +append [combined.jpg]
copy
Create GIF from images
$ magick -delay [100] [*.png] [animation.gif]
copy
Identify image info
$ magick identify [image.jpg]
copy
Batch convert all PNGs to JPEGs in the current directory
$ magick mogrify -format jpg [*.png]
copy

SYNOPSIS

magick [input] [operations] outputmagick identify [options] imagemagick mogrify [options] images

DESCRIPTION

ImageMagick is a suite of tools for image manipulation. It can convert, resize, crop, rotate, combine, and apply effects to images in over 200 formats.Key tools: magick (transform, replaces convert in v7), identify (info), mogrify (in-place edit), composite (combine), montage (collage). In v7, all subcommands are invoked via `magick` (e.g., `magick identify`, `magick mogrify`).

PARAMETERS

-resize geometry

Resize image.
-crop geometry
Crop image.
-rotate degrees
Rotate image.
-quality value
Compression quality (JPEG: 1-100, PNG: 0-9 for zlib compression level).
-gravity type
Anchor point for operations.
-annotate geometry text
Add text annotation.
-blur radius
Apply blur.
-sharpen radius
Sharpen image.
-colorspace type
Convert colorspace.
-density value
Set resolution (DPI).
-strip
Remove all metadata and profiles from image.
-format type
Set the output image format.

CAVEATS

Memory-intensive for large images. The default security policy (policy.xml) may restrict some operations and file formats. In v7, the `convert` command is deprecated in favor of `magick`; legacy v6 syntax still works but emits warnings.

HISTORY

ImageMagick was created by John Cristy in 1987 at DuPont. It's been continuously developed and remains the most widely used command-line image processing toolkit.

SEE ALSO

magick(1), convert(1), identify(1), mogrify(1), composite(1), montage(1), ffmpeg(1)

Copied to clipboard
Kai