Skip to content

Commit 1d3fbf2

Browse files
authored
Merge pull request #5915 from radarhere/load
2 parents 25165c1 + cdb0fba commit 1d3fbf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PIL/Image.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ def load(self):
812812
palette_length = self.im.putpalette(mode, arr)
813813
self.palette.dirty = 0
814814
self.palette.rawmode = None
815-
if "transparency" in self.info and mode in ("RGBA", "LA", "PA"):
815+
if "transparency" in self.info and mode in ("LA", "PA"):
816816
if isinstance(self.info["transparency"], int):
817817
self.im.putpalettealpha(self.info["transparency"], 0)
818818
else:

0 commit comments

Comments
 (0)