Allow for LA or PA in the future

This commit is contained in:
Andrew Murray 2023-09-26 19:54:34 +10:00
parent faa66eaa6c
commit 1c30809245

View File

@ -1544,7 +1544,7 @@ class Image:
"""
return (
self.mode in ("LA", "La", "PA", "RGBA", "RGBa")
or (self.mode == "P" and self.palette.mode == "RGBA")
or (self.mode == "P" and self.palette.mode.endswith("A"))
or "transparency" in self.info
)