mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-14 09:14:45 +03:00
Do not convert I images when showing PNGs
This commit is contained in:
parent
0ec32a3012
commit
3719137ff3
|
@ -77,7 +77,7 @@ class Viewer:
|
||||||
|
|
||||||
if not (
|
if not (
|
||||||
image.mode in ("1", "RGBA")
|
image.mode in ("1", "RGBA")
|
||||||
or (self.format == "PNG" and image.mode in ("I;16", "LA"))
|
or (self.format == "PNG" and image.mode in ("I", "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