mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-27 02:16:19 +03:00
Merge pull request #4744 from radarhere/show
This commit is contained in:
commit
e1c608486a
|
@ -71,7 +71,8 @@ class Viewer:
|
||||||
|
|
||||||
# save temporary image to disk
|
# save temporary image to disk
|
||||||
if not (
|
if not (
|
||||||
image.mode in ("1", "RGBA") or (self.format == "PNG" and image.mode == "LA")
|
image.mode in ("1", "RGBA")
|
||||||
|
or (self.format == "PNG" and image.mode in ("I;16", "LA"))
|
||||||
):
|
):
|
||||||
base = Image.getmodebase(image.mode)
|
base = Image.getmodebase(image.mode)
|
||||||
if image.mode != base:
|
if image.mode != base:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user