mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
fix indention
This commit is contained in:
parent
1a40613ca5
commit
ecd55629be
|
@ -550,7 +550,7 @@ def _save(im, fp, filename, chunk=putchunk, check=0):
|
|||
|
||||
if "transparency" in im.encoderinfo:
|
||||
if im.mode == "P":
|
||||
# limit to actual palette size
|
||||
# limit to actual palette size
|
||||
alpha_bytes = 2**bits
|
||||
if isinstance(im.encoderinfo["transparency"], bytes):
|
||||
chunk(fp, b"tRNS", im.encoderinfo["transparency"][:alpha_bytes])
|
||||
|
|
Loading…
Reference in New Issue
Block a user