rec / hardback

📓 Hardcopy backups of digital data 📓
MIT License
1 stars 0 forks source link

A PNG with transparency gets incorrectly rendered #14

Open rec opened 5 years ago

rec commented 5 years ago

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 commented 5 years ago

This was the same image as in #3.