Use the magick program to convert between image formats as well as resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more. See Command Line Processing for advice on how to structure your magick command or see below for example usages of the command.
We list a few examples of the magick command here to illustrate its usefulness and ease of use. To get started, lets convert an image in the JPEG format to PNG:
magick rose.jpg rose.png
Next, we reduce the image size before it is written to the PNG format:
magick rose.jpg -resize 50% rose.png
You can combine multiple image-processing operations to produce complex results:
magick -size 320x85 canvas:none -font Bookman-DemiItalic -pointsize 72 \ -draw "text 25,60 \'Magick\'" -channel RGBA -blur 0x6 -fill darkred -stroke magenta \ -draw "text 20,55 \'Magick\'" fuzzy-magick.png
or here we resize an image with improved quality:
magick input.png -colorspace RGB +sigmoidal-contrast 11.6933 \ -define filter:filter=Sinc -define filter:window=Jinc -define filter:lobes=3 \ -resize 400% -sigmoidal-contrast 11.6933 -colorspace sRGB output.png');
Utilize other command-line tools from the magick tool. To invoke this functionality, simply create a symbolic link to the magick tool or specify the tool you want to use as the first argument. These two methods are equivalent:
ln -s magick identify identify rose.jpg rose.png magick identify rose.jpg rose.png
You can find additional examples of using magick in Examples of ImageMagick Usage.
Option Summary
The magick command recognizes these options. Click on an option to get more details about how that option works.