RFE: Use PNG post-processing compression improvement tools
Created by: johnezang
Request For Enhancement
Please consider the use of PNG post-processing compression improvement tools as one of the final steps before "packaging a release distribution". Using the PNG compression tools
And the command (in the MathJax/fonts/HTML-CSS/TeX
directory of the v1.0.1a
zip distribution):
find png -type d -exec sh -c "optipng -q -o7 {}/*.png ; advpng -q -z4 {}/*.png" \;
I was able to reduce the size of the png
directory by approximately ~381 KBytes. Granted, it's not much, maybe 1.2% or so of the total, but each little bit helps. The above find
command is obviously just a quick hack, season to taste.
Obviously doing a PNG optimization pass on the 'originals' will produce the most benefit the first time it's run. This is a fairly trivial step to add and once the results are 'checked in' it will produce lasting benefits. Again, season the specifics to your projects work-flows taste.