tinypng.org如何压缩PNG文件? [英] How does tinypng.org compress PNG files?

查看:87
本文介绍了tinypng.org如何压缩PNG文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

http://tinypng.org/是一项很棒的服务,他们将我的png图像优化了约67%.他们的服务如何运作?他们如何最小化图片的大小和质量仍然保持不变?

http://tinypng.org/ is a great service, they optimized my png images by ~67%. How does their service work? How can they minimize size and quality of pictures still remains the same?

推荐答案

该网页上的答案正确:

当您上传PNG(便携式网络图形)文件时,类似 图像中的颜色会合并在一起.这项技术称为 量化".由于减少了颜色数量,因此使用24位PNG 可以将文件转换为小得多的8位索引彩色图像. 所有不必要的元数据也将被剥离.结果:微小的8位PNG 100%支持透明度的文件.吃蛋糕吃吧 也是!

When you upload a PNG (Portable Network Graphics) file, similar colours in your image are combined. This technique is called "quantisation". Because the number of colours is reduced, 24-bit PNG files can be converted to much smaller 8-bit indexed colour images. All unnecessary metadata is stripped too. The result: tiny 8-bit PNG files with 100% support for transparency. Have your cake and eat it too!

它将24位RGB文件转换为已着色的8位文件.您会损失一些色深,但是对于小图像,通常是难以察觉的.

It turns 24-bit RGB files into palettized 8-bit ones. You lose some color depth, but for small images it's often imperceptible.

您可以使用此功能强大的工具在命令行上手动执行相同的操作: http://pngquant.org/

You can do the same thing manually on the command line with this awesome tool: http://pngquant.org/

这篇关于tinypng.org如何压缩PNG文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆