mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 04:07:21 +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 "transparency" in im.encoderinfo:
|
||||||
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
|
||||||
if isinstance(im.encoderinfo["transparency"], bytes):
|
if isinstance(im.encoderinfo["transparency"], bytes):
|
||||||
chunk(fp, b"tRNS", im.encoderinfo["transparency"][:alpha_bytes])
|
chunk(fp, b"tRNS", im.encoderinfo["transparency"][:alpha_bytes])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user