mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 02:36:17 +03:00
Allow for LA or PA in the future
This commit is contained in:
parent
faa66eaa6c
commit
1c30809245
|
@ -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
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user