View Full Version : pngcrush pngs in sdk

19 Apr 2012, 9:59 AM
Has anyone else tried running pngcrush on the png files in sencha touch 2 sdk? It seems like there's a decent savings to be had. After running pngcrush on the contents of the resources/themes/images/default/pictos/ with this command

pngcrush -d crushed -rem tIME -rem zTXt -rem tEXt -rem iTXt -rem gAMA -rem cHRM -rem iCCP -rem sRGB -brute pictos/*.png

the size shrinks about 30%

$ du -b pictos/ crushed/
528024 pictos/
365838 crushed/

Maybe the above pngcrush command removes too much? Are there chunks that shouldn't be removed?

20 Apr 2012, 7:17 AM
Are you using it and still using compass to base64 encode them?

20 Apr 2012, 7:51 AM
Yes, and they look them same as the original versions when I flip back and forth between two tabs in chrome. I don't think the colour-correction related chunks or the metadata chunks are necessary for the pictos images. I'm only using a few of the icons though, so there may be some that are visually different.