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

Order of colors in PLTE not kept anymore #172

Open
petrdiblik opened this issue Jul 25, 2020 · 0 comments
Open

Order of colors in PLTE not kept anymore #172

petrdiblik opened this issue Jul 25, 2020 · 0 comments

Comments

@petrdiblik
Copy link

At some point between 2015 and 2020, ZopfliPNG changed the palette processing from "keep the order of colors in PLTE" to "reorder the palette as the colors are found in the image".
But in many cases, the former approach gives better results.
Before any more sophisticated algorithm is added, would it be possible to allow keeping the PLTE order? It could be done by "--keepchunks=PLTE" (this currently doesn't work as desired) or by adding a new parameter, e.g. "--keep_palette_order".
Of course there would be some consequences to consider (e.g. the input and/or the output aren't indexed, the input PLTE contains unused colors).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant