Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • M MathJax
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 304
    • Issues 304
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MathJax
  • MathJax
  • Issues
  • #44
Closed
Open
Issue created Dec 29, 2010 by Administrator@rootContributor

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

  • advpng
  • optipng

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.

Assignee
Assign to
Time tracking