diff --git a/src/PIL/Image.py b/src/PIL/Image.py index a760de575a6..0a79b1237f3 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -1531,7 +1531,8 @@ def getpalette(self, rawmode="RGB"): def apply_transparency(self): """ 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: return