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

Add additional parameter to preserve png colormap. #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hicom150
Copy link

No description provided.

@BrunoCartier
Copy link
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
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