Monday, February 8, 2010

Results of PNG compression tools

I've repeated Oleg Kikin's PNG compression tools test with the following competitors:

  • Adobe Photoshop CS4
  • AdvanceCOMP 1.15
  • OptiPNG 0.6.3
  • PNGCrush 1.7.6
  • PNGOut r20091108

I've made two tests. First, with a sprite image (26 x 2532 pixels) with 70 icons in it (used in real life in one of my previous project) and second, with a set of those 70 icons in separated files.


Here are the results:

SpriteImprovementSeparated
files
Improvement
PS CS4 (GIF)10253-27%1453439%
PS CS4 (PNG)752220171
AdvanceCOMP from PNG72244%1736016%
OptiPNG from PNG75100%1741316%
OptiPNG from GIF75220%198692%
PNGCrush from PNG75130%199011%
PNGOut from PNG659614%1631824%
PNGOut from GIF659114%1630824%

So, my result is, if you want to serve small files, you should use GIFs. Why? Maybe because of the header size? Maybe the LZW compression is better with small amount of data than DEFLATE…


My next test will be using data:uri with these files using base64 serving using no encodings and gzip, and will see the results.

No comments:

Post a Comment