diff --git a/src/PIL/Image.py b/src/PIL/Image.py index d5113a71f9e..e5ea25fc44f 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -812,7 +812,7 @@ def load(self): palette_length = self.im.putpalette(mode, arr) self.palette.dirty = 0 self.palette.rawmode = None - if "transparency" in self.info and mode in ("RGBA", "LA", "PA"): + if "transparency" in self.info and mode in ("LA", "PA"): if isinstance(self.info["transparency"], int): self.im.putpalettealpha(self.info["transparency"], 0) else: