mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-13 01:50:48 +03:00
fix indention
This commit is contained in:
parent
09315f263b
commit
1a40613ca5
|
@ -555,9 +555,9 @@ def _save(im, fp, filename, chunk=putchunk, check=0):
|
|||
if isinstance(im.encoderinfo["transparency"], bytes):
|
||||
chunk(fp, b"tRNS", im.encoderinfo["transparency"][:alpha_bytes])
|
||||
else:
|
||||
transparency = max(0, min(255, im.encoderinfo["transparency"]))
|
||||
alpha = b'\xFF' * transparency + b'\0'
|
||||
chunk(fp, b"tRNS", alpha[:alpha_bytes])
|
||||
transparency = max(0, min(255, im.encoderinfo["transparency"]))
|
||||
alpha = b'\xFF' * transparency + b'\0'
|
||||
chunk(fp, b"tRNS", alpha[:alpha_bytes])
|
||||
elif im.mode == "L":
|
||||
transparency = max(0, min(65535, im.encoderinfo["transparency"]))
|
||||
chunk(fp, b"tRNS", o16(transparency))
|
||||
|
|
Loading…
Reference in New Issue
Block a user