Skip to content
This repository was archived by the owner on Oct 19, 2020. It is now read-only.

Add additional parameter to preserve png colormap.#37

Open
hicom150 wants to merge 1 commit intoAlexDisler:masterfrom
hicom150:master
Open

Add additional parameter to preserve png colormap.#37
hicom150 wants to merge 1 commit intoAlexDisler:masterfrom
hicom150:master

Conversation

@hicom150
Copy link
Copy Markdown

No description provided.

@BrunoCartier
Copy link
Copy Markdown
Collaborator

Hey,

Could you please explain what this feature does, why it is needed, and what are the consequences on the produced files?

Thanks.

@hicom150
Copy link
Copy Markdown
Author

This option tells the PNG encoder not to optimize the palette and to preserve the exact colormap.
In my case, I had a 32bit gray icon and the PNG encoder converted it to grayscale with not the exact same color.
Thanks to this parameter I was able to get the correct output I was expecting.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants