mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-04 20:03:20 +03:00
Clarify apply_transparency() docstring
This commit is contained in:
parent
0d6440d9f2
commit
f6f622dcee
|
@ -1482,7 +1482,8 @@ class Image:
|
||||||
def apply_transparency(self):
|
def apply_transparency(self):
|
||||||
"""
|
"""
|
||||||
If a P mode image has a "transparency" key in the info dictionary,
|
If a P mode image has a "transparency" key in the info dictionary,
|
||||||
remove the key and apply the transparency to the palette instead.
|
remove the key and instead apply the transparency to the palette.
|
||||||
|
Otherwise, the image is unchanged.
|
||||||
"""
|
"""
|
||||||
if self.mode != "P" or "transparency" not in self.info:
|
if self.mode != "P" or "transparency" not in self.info:
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue
Block a user