magick
Create, edit, compose, or convert between image formats. tldr-pages
On several platforms
Several platforms
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.jpgIdentifyResize an image, making a new copy
magick path/to/input_image.jpg -resize 100x100 path/to/output_image.jpgIdentifyResize an image by a percentage
magick path/to/input_image.png -resize 50% path/to/output_image.pngIdentifyScale an image to have a specified file size
magick path/to/input_image.png -define jpeg:extent=512kb path/to/output_image.jpgIdentifyVertically/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.pngIdentifyCreate a GIF out of all JPEG images in the current directory
magick *.jpg path/to/images.gifIdentifyCreate a checkerboard pattern
magick -size 640x480 pattern:checkerboard path/to/checkerboard.pngIdentifyCreate a PDF file out of all JPEG images in the current directory
magick *.jpg -adjoin path/to/file.pdfIdentify