Image Compression Method

Source: Internet
Author: User

As the above suddenly said to optimize the performance of the company's website homepage, in order to speed up, the image compression and then the implementation of gzip will be better. After searching on the internet, I summarized some of the methods that I think are feasible based on my actual situation and my tests, hoping to help you. If you have a better method, let's talk about it.

Overall method:

1. Images exported using Photoshop are generally larger (equivalent quality) than those exported using fireworks ). If you want to reduce the image size, we recommend that you use fireworks to repeat the image.
2. Use smush. It to compress the compressed image. Address http://www.smushit.com/ysmush.it/
Smush. it is a lossless image compression tool developed by the Yui team. It removes unnecessary bytes from the image file without changing the image appearance or visual quality for image optimization.

It is a service based on the above four image optimization recommendations:

  • Remove the meta data from JPEG.
  • The JPEG compression rate is optimized.
  • Convert a specific GIF image to an indexed PNG image.
  • Remove useless color information from indexed images.

Subdivided into image formats:
PNG format: When the visual effect of the image is not affected (no gradient, etc.), use the png8 format as much as possible. Or compress http://www.punypng.com/here /.
GIF format: Try changing it to png8 format, which is definitely much smaller.
JPG format: It is optimized during export, and the quality can be adjusted as small as possible within the acceptable range. (JPG uses distortion compression to process images, but the degree of distortion cannot be recognized by the naked eye .)

Appendix: http://pic.55.la/here, the image can be compressed very small, but the quality is not satisfactory.

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.