-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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
optipng (vs|+) pngout #477
Comments
hmm we want to move to "improved pngquant".. do you know what its behavior is? |
The following is about as good as lossless compression gets for PNGs:
PNGOUT is closed source, it's license prohibits bundled distribution and it's development is completely mothballed. |
Looping in @pornel! Do you have a recommendation for using pngquant with H5BP build script? |
pngquant removes all optional chunks. Files reduced with pngquant can be further optimised with optipng & co. Beware that some png's might not take conversion to png8 well, so this can't be blindly applied to all of them (I plan to include dssim tool with pngquant to detect this case and skip conversion automatically.) |
"improved pngquant" is not a tool to optimize png, but to "Quantizes one or more 32-bit RGBA PNGs to 8-bit (or smaller)" (which is done very well). But it's not the same. Metadata stripping is planned for v0.7 of OptiPNG, but there's no release date. pngcrush is also a very good alternative. There is a "prod option", -brute, which test all the different optimization to determine the best. But it's verrryyyy slow (6s ans (gain 2.6%) for the default on a 140k/24b png ; 46s (gain 4%) for with the -brute option). But it doesn't strip comment too. And yes, PNGOUT is closed source, but it's one of the few to strip comment. |
I'm pretty sure @pornel already knows what it does ;) |
This was a reply to Paul :) "improved pngquant" should not replace optipng because it's a different tool. |
I find PNGout doing way more compression then optiPNG. I did some tests on 32 bit depth and they compressed down to the same file size, as compared to using PNGout. Damns, so much for automating the png's in HTML5 boilerplate. |
So no consensus on this one, then? |
Yes : wait for optipng v.0.7 (Plans for version 0.7: Metadata editing -- including the highly-anticipated metadata stripping capability :-)) |
Closing this because the plan seems to be "update optipng when there's a new release". If this needs to be reopened, please do it at the ant build script repo with a cross-repo link back to this issue. Thanks |
So I've mentioned 2 years ago that automatic conversion to png8 might be risky. Well, it's fixed now:
This will overwrite the Still, file size can be reduced afterwards with lossless optimizers like optipng or pngout. |
I'm already on this over at the ant build script repo. |
Thanks guys. Closing as this is an issue for the build script. But good to know. |
Hi,
It's just a note.
optipng doesn't strip useless txt - let by software like Adobe Photoshop - in PNG. pngout does.
pngout compress better but you have tell him what kind of png is there (color+alpha, greyscale+alpha, etc.), otherwise he's doing wrong.
optipng knows what type of png should be used.
So, if I want a real optimised PNG (for example to convert in base64 for dataURI), I use optipng then pngout (in that order).
The text was updated successfully, but these errors were encountered: