CmdID

CmdID / Commands

magick

Create, edit, compose, or convert between image formats. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Create, edit, compose, or convert between image formats. This tool replaces convert in ImageMagick 7+. See magick convert to use the old tool in versions 7+. Some subcommands such as mogrify have their own usage documentation.

Convert between image formats

magick path/to/input_image.png path/to/output_image.jpgIdentify

Resize an image, making a new copy

magick path/to/input_image.jpg -resize 100x100 path/to/output_image.jpgIdentify

Resize an image by a percentage

magick path/to/input_image.png -resize 50% path/to/output_image.pngIdentify

Scale an image to have a specified file size

magick path/to/input_image.png -define jpeg:extent=512kb path/to/output_image.jpgIdentify

Vertically/horizontally append images and have the empty space be transparent

magick convert -background none path/to/image1.png path/to/image2.png ... -append path/to/output_image.pngIdentify

Create a GIF out of all JPEG images in the current directory

magick *.jpg path/to/images.gifIdentify

Create a checkerboard pattern

magick -size 640x480 pattern:checkerboard path/to/checkerboard.pngIdentify

Create a PDF file out of all JPEG images in the current directory

magick *.jpg -adjoin path/to/file.pdfIdentify