ImageMagick image Magician Basic use guide

Source: Internet
Author: User
Tags command line file size imagemagick

Image magician ImageMagick is a command line image processing software, some in Photoshop and other image software to carry out a series of steps of the tedious operation, it only needs to enter a line of commands can be resolved, the efficiency of the extraordinary high. Of course, command line operations have a lot of limitations, as long as it is a tool to see it.

Because ImageMagick is a command-line program, it is not easy to see if the program installation is normal, so check. Click start → run, enter cmd in the Open Run window, press ENTER to determine, and open the Windows XP Command Prompt window. Enter command convert Logo:logo.miff and press ENTER to confirm. Then enter the command Imdisplay Logo.miff, press the ENTER key to confirm, if this time pop-up ImageMagick window, display a magician's image, it shows that the program installed all normal.

① image format conversion requires only one line of command, but also can finish cropping, flip, blur, merge and so on. Enter the following command in the Windows XP Command Prompt window (ImageMagick supports more than 100 image formats): Convert d:pic001.jpg d:pic001.png

Convert is a conversion command, with the following two parameters separated by a space, the file path (jpg format) of the source image, the converted file (PNG format), and its saved path, ImageMagick automatically recognizes the format based on the suffix name of the given file. Press ENTER, wait a moment, in the D:pic folder really more than the image file 0001.png.

② conversion reduces image at the same time, input: Convert d:pic008.bmp-resize 50% d:pic001.jpg

This is more than the previous line of-resize 50%, English means "resize", 50% to reduce the image by half. Press ENTER to execute the command, after completion into the D:pic folder to view, and indeed a 0008.jpg image file. For example, the original BMP file size is 9217KB, the converted JPG file is only 649KB, the file is more than 10 times times smaller.

③ to get the effect font, enter the following command (on the same line): Convert-size 320x85 xc:transparent-font arial-black-pointsize 72-draw "text 25,60 ' Magick '"-ch Annel Rgba-gaussian 0x6-fill darkred-stroke magenta-draw "text 20,55 ' Magick '" d:picmagick.png

You will get a text effect when you enter. -size to set the size of the image,-font for the set font,-pointsize for the set text size,-draw to write text content.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.