Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

PNG transparency keyword ignored #528

jblarsen opened this Issue Feb 24, 2014 · 0 comments


None yet
1 participant

In PngImagePlugin.py around line 564 we have the following:

    transparency = im.encoderinfo.get('transparency',im.info.get('transparency', None))

    if transparency:
        if im.mode == "P":

For paletted images you are supposed to give the palette index number for the color you want to be transparent. When that number is 0 you will never enter the if block. So maybe it should be something like:

    if transparency is not None:
        if im.mode == "P":

@wiredfool wiredfool closed this in #533 Mar 1, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment