Brief introduction:
ImageMagick is a series of command-line tools for modifying, processing images that can be used to quickly manipulate images using the command line, batch a large number of images, and do quite a lot of work, this article involves only the skills commonly used in development.
Quick installation:
Yum-y Install Epel-releaseyum install-y ImageMagick imagemagick-devel
Format conversion:
Convert 1.png 1.jpg
To scale an image:
Convert 1.jpg-resize 499x 1.jpg
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/88/3D/wKioL1fstN_yNM_kAAT8HUwKRVg415.png "title=" Equal scale. png "alt=" Wkiol1fstn_ynm_kaat8huwkrvg415.png "/>
Note: ImageMagick will try to ensure equal to scale,-resize the value after the format of the width x height, the single specified side will be equal to the other side of the scale, if you want to force the specified width to specify the width of the x height! to force scaling
Final Summary:
Description: because often use the Linux under Vim to write front-end code, most commonly used is the image format conversion and image scaling, of course ImageMagick also has a lot of special effects functions, such as rotation, carbon painting, implosion, etc., specific functions can refer to the official website.
This article is from the "ζ Automated operation and maintenance development Road ζ" blog, please be sure to keep this source http://xmdevops.blog.51cto.com/11144840/1857746
development tool _imagemagick. Image Zoom/Edit/format conversion based on the Linux command line?