fix indention

This commit is contained in:
David Schmidt 2013-03-21 18:47:37 +01:00
parent 1a40613ca5
commit ecd55629be

View File

@ -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])