Skip to content

Commit

Permalink
Merge pull request #5915 from radarhere/load
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Dec 30, 2021
2 parents 25165c1 + cdb0fba commit 1d3fbf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PIL/Image.py
Expand Up @@ -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:
Expand Down

0 comments on commit 1d3fbf2

Please sign in to comment.