Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compress menu images #734

Closed
pkra opened this issue Feb 10, 2014 · 3 comments

Comments

Projects
None yet
3 participants
@pkra
Copy link
Member

commented Feb 10, 2014

As per https://groups.google.com/forum/#!topic/mathjax-dev/vy76UgdM7kA, the menu PNGs can be optimized further.

@dpvc dpvc added the Accepted label Feb 18, 2014

@dpvc dpvc added this to the Bugfix Version milestone Feb 18, 2014

dpvc pushed a commit to dpvc/MathJax that referenced this issue Feb 20, 2014

dpvc pushed a commit to dpvc/MathJax that referenced this issue Feb 21, 2014

@dpvc dpvc added Merged and removed Ready for Review labels Feb 21, 2014

@dpvc

This comment has been minimized.

Copy link
Member

commented Feb 21, 2014

=> Merged.

@dpvc dpvc closed this Feb 21, 2014

@rbrito rbrito referenced this issue Feb 24, 2014

Closed

Recompress PNGs #748

@dpvc dpvc added v2.4 and removed Merged labels Jun 30, 2014

@Jesin

This comment has been minimized.

Copy link

commented Sep 18, 2014

OptiPNG does an excellent job at optimizing the filtering that takes place before the DEFLATE compression is applied. However, its implementation of the DEFLATE algorithm itself is basically standard zlib, which leaves quite a bit of room for improvement.

AdvanceCOMP absolutely excels at optimizing DEFLATE compression, but its handling of the PNG-specific pre-DEFLATE filtering leaves something to be desired.

I would love to see the functionality of these two tools merge, but until that happens, this is how I recompress all of my PNGs:

#!/bin/sh
optipng -fix -o5 "$@"
advdef -z4 "$@"
exec advpng -z4 "$@"

(I usually invoke this in parallel using find -O2 "$dirname" -type f -iname '*.png' -print0 | xargs -0 -n1 "-P$NPROC" optimize-png.sh.)

@pkra

This comment has been minimized.

Copy link
Member Author

commented Sep 18, 2014

Nice idea. Have you seen a significant reduction? I was thinking the next step should rather be switching to inline SVG and keeping these images only for old browsers. Either way, if it's a significant gain we should open a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.