tinypng/是一项很棒的服务,他们将我的png图像优化了约67%.他们的服务如何运作?他们如何最小化图片的大小和质量仍然保持不变?
tinypng/ 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.
您可以使用此功能强大的工具在命令行上手动执行相同的操作: pngquant/
You can do the same thing manually on the command line with this awesome tool: pngquant/
更多推荐
tinypng.org如何压缩PNG文件?
发布评论