How the Linux system compresses picture sizes in batches

Source: Internet
Author: User
Tags imagemagick

Now the digital camera photos of the pixels are very high, most of them will exceed this limit, many times we have to the image of bulk compression, Linux system under How to bulk compress picture size?

A powerful free picture tool that can be used under command line ImageMagick

Installation and usage of CentOS system:

Yum Install ImageMagick

Then enter Y to confirm the installation complete

Next Call system command

The resize parameter of convert above can modify the ImageMagick, it can transform the format of the picture, compress the size, increase the watermark and so on, and do not need to write a third party's program, just write a simple shell script can complete the picture compression operation, Next on the Ubuntu introduction:

Install Command:

sudo apt-get install ImageMagick

Other Linux has the corresponding software installation commands, I wrote the following two scripts, the pictures are batch format and compression operations:

Image format conversion, here is an example of [BB][MM][PP] (all BMP files) in the format of the file, converted to a small space-occupying JPG file:

Picture compression script:

        Note : more Wonderful tutorials please focus on the Triple computer Tutorials section, triple Computer office group: 189034526 Welcome to join

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.