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

A PNG with transparency gets incorrectly rendered #14

Open
rec opened this issue Apr 17, 2019 · 1 comment
Open

A PNG with transparency gets incorrectly rendered #14

rec opened this issue Apr 17, 2019 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@rec
Copy link
Owner

rec commented Apr 17, 2019

Most PNG files don't exhibit this, but I have one lying around that has a lot of transparency and does.

/code/env/hardback/lib/python3.6/site-packages/PIL/Image.py:966: UserWarning: Palette images with Transparency expressed in bytes should be converted to RGBA images

'to RGBA images'

The result is wrong colors (green background in a black-only image) and pixelated edges - see attached PNG.

bad_image

Workaround - don't use one-color PNG images with transparency.

@rec rec added the bug Something isn't working label Apr 17, 2019
@rec rec self-assigned this Apr 17, 2019
rec added a commit that referenced this issue Apr 17, 2019
@rec
Copy link
Owner Author

rec commented Apr 17, 2019

This was the same image as in #3.

rec added a commit that referenced this issue Apr 18, 2019
@rec rec added this to the release milestone Apr 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant