![]() |
![]() |
![]() |
|
[
About ImageMagick
Command-line Tools
Program Interfaces
] [ Install from Source Binary Releases Resources ] [ Download ] [ Links ] [ Sponsors Solutions for e- and m-commerce ] |
The ImageMagick command line can be as simple as convert image.jpg image.png or as complex as
convert label.gif +matte \
\( +clone -shade 110x90 -normalize -negate +clone -compose Plus -composite \) \
\( -clone 0 -shade 110x50 -normalize -channel BG -fx 0 +channel -matte \) \
-delete 0 +swap -compose Multiply -composite button.gif
Without knowing much about the ImageMagick command line, you can probably figure out that the first command converts an image in the JPEG format to one in the PNG format. However, very few may realize the second, more complex command, gives a flat two-dimensional label a three-dimensional look with rich textures and simulated depth:
In the next sections we dissect the anatomy of the ImageMagick command line. Hopefully, after carefully reading and better understanding how the command line works, you should be able to accomplish complex image-processing tasks without resorting to the sometimes daunting program interfaces. The ImageMagick command line consists of
You can find a detailed explanation of each of the constituent parts of the command line in the sections that follow. ImageMagick extends the concept of an input filename to include: 1) filename globbing; 2) an explicit image format; 3) using built-in images and patterns; 4) reading an image from standard in; 5) selecting certain frames from an image; and 6) selecting a region of an image. Each of these extensions are explained in the next few paragraphs.
convert *.jpg images.gif convert -size 640x480 -depth 8 rgb:image image.png convert -size 640x480 pattern:checkerboard checkerboard.png convert logo: gif:- | display gif:- convert images.gif[0] image.png convert 'images.gif[0]' image.png convert 'images.gif[0-4]' images.mng convert 'images.gif[3,2,4]' images.mng convert -size 6000x4000 -depth 8 'rgb:image[600x400+1900+2900]' image.jpg convert -size 6000x4000 -depth 8 -extract 600x400+1900+2900 rgb:image image.jpg An image setting persists as it appears on the command line and may affect subsequent processing such as reading an image, an image operator, or when writing an image as appropriate. An image setting stays in effect until it is reset or the command line terminates. The image settings include:
In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight In this example, –channel applieght" target="magick-option">–weight |