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

PNG compression algorithm causing desaturation #80

Open
2chen opened this issue Dec 25, 2020 · 1 comment
Open

PNG compression algorithm causing desaturation #80

2chen opened this issue Dec 25, 2020 · 1 comment

Comments

@2chen
Copy link

2chen commented Dec 25, 2020

It seems lilliput's algorithm for compressing PNGs is causing them to become noticeably desaturated compared to the original image. I also tested Google's Hangout's compression algorithm which didn't result in desaturation (incidentally lilliput's file size is also ~25% larger than Google's)

Examples

Original image (105 kb):
original-wintermelon

lilliput compression (via Discord) (95 kb) (notice how the red and green are desaturated vs the original):
discord-wintermelon

Google compression (via Google Hangouts) (76 kb):
gchat-wintermelon

@skidder
Copy link
Contributor

skidder commented Jul 15, 2024

@2chen I understand this issue was filed a long time ago, sorry for the (very) late reply.
Lilliput did not preserve ICC color profile data at the time you reported this issue. It's possible that the behavior you saw was due to the resulting image lacking color profile info.
We have since fixed that issue with PR #156 , and will propagate ICC color profile data when possible.

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

2 participants