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 palette reduction #11

Closed
5 tasks done
shssoichiro opened this issue Feb 23, 2016 · 0 comments
Closed
5 tasks done

Implement palette reduction #11

shssoichiro opened this issue Feb 23, 2016 · 0 comments
Labels
I-High Issues that are breaking core functionality for a small number of users T-Feature Requests for a new feature to be added T-Needs Tests
Milestone

Comments

@shssoichiro
Copy link
Owner

i.e. eliminating duplicate and unused entries from the palette

The process involves:

  • Search the palette for duplicate entries and eliminate them
  • Remove any entries from the palette that are never used in the image
  • Update the image data to reference the correct indices in the palette
  • Also update the alpha table, if present
  • Write some tests

This needs to be done with BitVec since indexed PNGs support bit depth < 8

@shssoichiro shssoichiro added I-High Issues that are breaking core functionality for a small number of users T-Needs Tests T-Feature Requests for a new feature to be added labels Feb 23, 2016
@shssoichiro shssoichiro added this to the 1.0 milestone Mar 4, 2016
shssoichiro pushed a commit that referenced this issue Apr 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-High Issues that are breaking core functionality for a small number of users T-Feature Requests for a new feature to be added T-Needs Tests
Projects
None yet
Development

No branches or pull requests

1 participant