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

BUG: handle PIL paletts with <256 color palettes #775

Merged
merged 1 commit into from Apr 4, 2022

Conversation

FirefoxMetzger
Copy link
Contributor

Closes: #774

As of pillow 9.1 palettes (at least for PNG) may now contain less than 256 entries. This broke our legacy pillow plugin where 256 entries per palette were hardcoded. This PR fixes the issue by removing that hardcoding.

@FirefoxMetzger FirefoxMetzger merged commit 309242d into imageio:master Apr 4, 2022
@FirefoxMetzger FirefoxMetzger deleted the pillow-91-bugfix branch April 4, 2022 13:13
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

Successfully merging this pull request may close these issues.

bug reading grayscale images using Pillow 9.1
2 participants