-
Notifications
You must be signed in to change notification settings - Fork 584
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
expose indexed color profile for PNG #1286
Comments
The one thing that's not clear to me is interface. We could add a method of |
@fintelia is this "not planned" as in "not planned yet" (which I would understand) or "not planned" as in "planned not to", for which I would like to know more about. |
It is more "not planning to add an API for this to the image crate". I'd support adding the logic to the |
Well, it always improves the compression ratio, the problem is that depending on the image it can lead to visible posterization artifacts. That's why using a color palette is a user choice more than a technical decision that could be automated. |
I guess there's two different features here:
I'm supportive of implementing (1) in the |
Ok, I understand better now. I'll file an issue in the png crate and see their thoughts about it. But guessing if an image uses less than 256 colors can fail due to edge anti-aliasing which introduces a lot of intermediate colors. |
It was discussed in #389 that exposing indexed color profiles of PNG crate could be done quite easily. A use case is given here for light thumbnail generation in Zola ssg. It can significantly decrease media size and then produce much lighter web pages.
The text was updated successfully, but these errors were encountered: