We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 25165c1 + cdb0fba commit 1d3fbf2Copy full SHA for 1d3fbf2
src/PIL/Image.py
@@ -812,7 +812,7 @@ def load(self):
812
palette_length = self.im.putpalette(mode, arr)
813
self.palette.dirty = 0
814
self.palette.rawmode = None
815
- if "transparency" in self.info and mode in ("RGBA", "LA", "PA"):
+ if "transparency" in self.info and mode in ("LA", "PA"):
816
if isinstance(self.info["transparency"], int):
817
self.im.putpalettealpha(self.info["transparency"], 0)
818
else:
0 commit comments