Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Error handling for unsupported transparency
When input images (palette mode) have transparency (bytes) in info, the output images (RGB mode) will inherit it, causing ValueError in Pillow:PIL/PngImagePlugin.py#1364 when trying to unpack this bytes. This commit check the PNG mode and transparency info, removing transparency if it's RGB mode and transparency is bytes
- Loading branch information