Skip to content

A PNG with transparency gets incorrectly rendered #14

@rec

Description

@rec

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions