mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-28 18:24:57 +03:00
parent
f826114ce9
commit
f848993c89
|
@ -561,7 +561,7 @@ def _save(im, fp, filename, chunk=putchunk, check=0):
|
||||||
|
|
||||||
transparency = im.encoderinfo.get('transparency',im.info.get('transparency', None))
|
transparency = im.encoderinfo.get('transparency',im.info.get('transparency', None))
|
||||||
|
|
||||||
if transparency:
|
if transparency or transparency == 0:
|
||||||
if im.mode == "P":
|
if im.mode == "P":
|
||||||
# limit to actual palette size
|
# limit to actual palette size
|
||||||
alpha_bytes = 2**bits
|
alpha_bytes = 2**bits
|
||||||
|
|
Loading…
Reference in New Issue
Block a user