Powerful convert commands

Source: Internet
Author: User
Tags bmp image
The powerful convert command-general Linux technology-Linux technology and application information. The following is a detailed description. The convert command can be used to convert the image format. JPG, BMP, PCX, GIF, PNG, TIFF, XPM, and XWD types are supported. The following is an example:
Convert xxx.jpg xxx.png convert jpeg to png file
Convert xxx.gif xxx.bmp convert gif to bmp Image
Convert xxx. tiff xxx. pcx convert tiff to pcx Image
You can also change the image size:
Convert-resize 1024x768 xxx.jpg xxx1.jpg change the image pixel to 1024*768. Note that the lowercase letter x is used between 1024 and 768.
Convert-sample 50% x50 % xxx.jpg xxx1.jpg: reduce the image size to 50% * 50%
Rotating image:
Convert-rotate 270 sky.jpg sky-final.jpg rotate the image 270 degrees clockwise
Use the-draw option to add text to the image:
Convert-fill black-pointsize 60-font helvetica-draw 'text 10, 80 "Hello, World! "'Hello.jpg helloworld.jpg
Write Hello, World in the black Helvetica font at the 10th and 80th positions of the image!
Convert has many other interesting and powerful functions. You may try it.
Related Article

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.