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

Error handling for unsupported transparency #14958

Merged
merged 1 commit into from
Mar 4, 2024

Commits on Feb 18, 2024

  1. 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
    HTYISABUG committed Feb 18, 2024
    Configuration menu
    Copy the full SHA
    9d5dc58 View commit details
    Browse the repository at this point in the history