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

Implement possible size optimizations from Bit Depth from TruePNG #73

Closed
1 task
shssoichiro opened this issue Jul 21, 2017 · 0 comments · Fixed by #502
Closed
1 task

Implement possible size optimizations from Bit Depth from TruePNG #73

shssoichiro opened this issue Jul 21, 2017 · 0 comments · Fixed by #502
Labels
I-Medium Issues that are breaking core functionality, but have a known workaround T-Compression Relates to improving the compression ratio of images T-Feature Requests for a new feature to be added T-Needs Tests

Comments

@shssoichiro
Copy link
Owner

shssoichiro commented Jul 21, 2017

https://css-ig.net/articles/truepng.php

The bitdepth should match to the colortype, with some exceptions in paletted mode. encoders have the choice to use 8, 4, 2 or 1 bit by pixel. most of the time, the best choice is to select the lower bitdepth, that should decrease the filesize. this feature is included in most of optimizers.

most of encoders, including TruePNG, choose the minimal bitdepth possible considering the number of colors in the image. sometimes, it is better to choose the 8 bits / pixels, even for an image that have 16 colors or less. TruePNG can check that, and it reduces filesize that way.

  • Test 8 bits/pixel even if image could support less
@shssoichiro shssoichiro added T-Needs Tests T-Feature Requests for a new feature to be added labels Jul 21, 2017
@shssoichiro shssoichiro added the I-Medium Issues that are breaking core functionality, but have a known workaround label Oct 1, 2017
@shssoichiro shssoichiro added the T-Compression Relates to improving the compression ratio of images label Dec 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-Medium Issues that are breaking core functionality, but have a known workaround T-Compression Relates to improving the compression ratio of images T-Feature Requests for a new feature to be added T-Needs Tests
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant