Download Address:
Http://www.imagemagick.org/script/binary-releases.php#unix
Check the system for installation ImageMagick
Shell> Rpm-qa | grep ImageMagick
Start installing ImageMagick without it
Shell> RPM-UVH imagemagick-6.3.4-10.i386.rpm
Or
shell> Yum Install ImageMagick
ImageMagick usage Examples
1. Make index diagram and animation
!/bin/bash
Montage-bordercolor red-borderwidth 3-label "%f"-tile 5x3 *. JPG montage.jpg
Mogrify-format gif *. JPG Display montage.jpg animate *. Jpg
2. Scaling Convert-sample 80x40 input.jpg output.jpg
Note: After zooming the image retains its original height-to-width ratio convert-sample 25%x25% input.jpg output.jpg
3. Generate thumbnails for all images in the current directory
for IMG in ' LS *.jpg '
Todo
Convert-sample 25%x25% $img thumb-$img
Done
4. Get file information Libtiff
Tiffinfo Filename.tiff
Pnginfo Filename.png
5. Can use the ImageMagick identify
Identify-verbose Sample.png
Identify-format "%wx%h" sample.png
6. Rotate the image
Convert-rotate input.jpg output.jpg
7. Change file type
Convert Input.jpg output.png
8. Add annotation text to the image
Convert-font Helvetica-fill white-pointsize 36/
-draw ' Text 10,50 ' Floriade 2002, Canberra, Australia "'/
Floriade.jpg comment.jpg
Convert-font Fonts/1900805.ttf-fill white-pointsize 36/
-draw ' text 10,475 ' stillhq.com '/
Floriade.jpg stillhq.jpg
9. Special effects
Convert-charcoal 2 input.jpg output.jpg #炭笔
Convert-colorize 255 input.jpg output.jpg #着色 can specify three colors Red/green/blue
Convert-implode 4 input.jpg output.jpg #内爆效果
Convert-solarize input.jpg output.jpg #曝光, analog film exposure
Convert-spread 5 input.jpg output.jpg #随机移动, parameter is displacement size
10. Perform multiple operations at once
Convert-sample 25%x25%-spread 4-charcoal 4 input.jpg output.jpg
11. Proportionally reduced to a fixed size
For more examples, please refer to the following address:
http://www.imagemagick.org/Usage/thumbnails/
Convert-size 300x300 hatching.jpg-thumbnail x200-resize ' 200x< '-resize 50%-gravity center-crop 100x100+0+0 Age Cut_to_fit2.gif
Convert 1182743797.jpg-thumbnail x168-resize ' 252x< '-resize 50%-gravity center-crop 126x84+0+0 Thumb_1182743797.jpg