mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 17:24:31 +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))
|
||||
|
||||
if transparency:
|
||||
if transparency or transparency == 0:
|
||||
if im.mode == "P":
|
||||
# limit to actual palette size
|
||||
alpha_bytes = 2**bits
|
||||
|
|
Loading…
Reference in New Issue
Block a user