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

Support 1, 2, and 4 bit palette modes #11

Open
kitlith opened this issue Aug 10, 2021 · 0 comments
Open

Support 1, 2, and 4 bit palette modes #11

kitlith opened this issue Aug 10, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@kitlith
Copy link

kitlith commented Aug 10, 2021

Is your feature request related to a problem? Please describe.
Attempting to decode a PNG with a 4bpp palette results in a ColorMode(Palette, 4) error.

Describe the solution you'd like
I'd like it to "just work", perhaps providing the {1, 2, 4} bits in the 8 bit channel as before. (different types could also work, but would be more frustrating to deal with).

Describe alternatives you've considered
Converting the image to 8bpp ahead of time. (convert 4bpp.png PNG8:8bpp.png works for this)
Using the chunked api instead.
Using a different library.

Additional context
test_image.png

@AldaronLau AldaronLau added the enhancement New feature or request label Aug 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants