如何获得最大压缩截图?

在通过电子邮件发送之前,我想尽可能地压缩我的屏幕截图。 最好的压缩比我只在每个屏幕截图上做了一些工作:

  • 首先我用shutter截取屏幕截图:1920x1080px,PNG压缩9 – >大约450Kb
  • 然后我把它上传到http://tinypng.org/ – >用量化得到了相同的图片,但只剩下大约150Kb

如何在快门等截图工具中实现如此好的压缩? 但快门没有“量化”选项。

质量并不重要,我不介意让它更有损。 也许使用GIF可以压缩更小? 或者用较少的颜色?

http://tinypng.org的技术看起来很棒:

图像中的相似颜色组合在一起。 这种技术称为“量化”。 由于颜色数量减少,24位PNG文件可以转换为更小的8位索引彩色图像。 所有不必要的元数据也被剥离。 结果:微小的8位PNG文件

optipng当然值得一看。 它是命令行,但你可以为它编写一个.desktop处理程序。 用于批处理相当简单:

 optipng -o7 *.png 

但请注意它具有破坏性。 它会覆盖你的文件。 这通常很好但如果你使用的是胖格式(例如Adobe Fireworks PNG),你可能会失去用处。 以下是完整的选项列表:

 $ optipng -h OptiPNG 0.6.4: Advanced PNG optimizer. Copyright (C) 2001-2010 Cosmin Truta. Synopsis: optipng [options] files ... Files: Image files of type: PNG, BMP, GIF, PNM or TIFF Basic options: -?, -h, -help show this help -o  optimization level (0-7) default 2 -v verbose mode / show copyright and version info General options: -fix enable error recovery -force enforce writing of a new output file -keep keep a backup of the modified files -preserve preserve file attributes if possible -quiet quiet mode -simulate simulation mode -snip cut one image out of multi-image or animation files -out  write output file to  -dir  write output file(s) to  -log  log messages to  -- stop option switch parsing Optimization options: -f  PNG delta filters (0-5) default 0,5 -i  PNG interlace type (0-1) default  -zc  zlib compression levels (1-9) default 9 -zm  zlib memory levels (1-9) default 8 -zs  zlib compression strategies (0-3) default 0-3 -zw  zlib window size (32k,16k,8k,4k,2k,1k,512,256) -full produce a full report on IDAT (might reduce speed) -nb no bit depth reduction -nc no color type reduction -np no palette reduction -nx no reductions -nz no IDAT recoding Optimization details: The optimization level presets -o0 <=> -o1 -nx -nz -o1 <=> [use the libpng heuristics] (1 trial) -o2 <=> -zc9 -zm8 -zs0-3 -f0,5 (8 trials) -o3 <=> -zc9 -zm8-9 -zs0-3 -f0,5 (16 trials) -o4 <=> -zc9 -zm8 -zs0-3 -f0-5 (24 trials) -o5 <=> -zc9 -zm8-9 -zs0-3 -f0-5 (48 trials) -o6 <=> -zc1-9 -zm8 -zs0-3 -f0-5 (120 trials) -o7 <=> -zc1-9 -zm8-9 -zs0-3 -f0-5 (240 trials) The libpng heuristics -o1 <=> -zc9 -zm8 -zs0 -f0 (if PLTE is present) -o1 <=> -zc9 -zm8 -zs1 -f5 (if PLTE is not present) The most exhaustive search (not generally recommended) [no preset] -zc1-9 -zm1-9 -zs0-3 -f0-5 (1080 trials) Examples: optipng file.png (default speed) optipng -o5 file.png (moderately slow) optipng -o7 file.png (very slow) optipng -i1 -o7 -v -full -sim experiment.png 

还有其他工具(例如pngcrush ),你可能会发现它们更有用,但我从来没有偏离optipng ,只是因为它没有废话的同性恋。

有一个相当全面的PNG压缩射击在这里非常有趣:

您可以将此插件添加到shutter

带有集成optipng或pngcrush的屏幕截图工具

这使您可以选择使用optipng压缩创建的屏幕截图