Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

fixes #528 #530

Merged
merged 1 commit into from

2 participants

@d-schmidt

Accept 0 as transparency value.

@d-schmidt d-schmidt fixes #528
Accept 0 as transparency value.
f848993
@wiredfool wiredfool merged commit f848993 into python-pillow:master
@wiredfool
Owner

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 25, 2014
  1. @d-schmidt

    fixes #528

    d-schmidt authored
    Accept 0 as transparency value.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  PIL/PngImagePlugin.py
View
2  PIL/PngImagePlugin.py
@@ -561,7 +561,7 @@ def _save(im, fp, filename, chunk=putchunk, check=0):
transparency = im.encoderinfo.get('transparency',im.info.get('transparency', None))
- if transparency:
+ if transparency or transparency == 0:
if im.mode == "P":
# limit to actual palette size
alpha_bytes = 2**bits
Something went wrong with that request. Please try again.