development tool _imagemagick. Image Zoom/Edit/format conversion based on the Linux command line?

Source: Internet
Author: User
Tags imagemagick

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?

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.