Do not convert I images when showing PNGs

This commit is contained in:
Andrew Murray 2022-11-30 06:45:54 +11:00
parent 0ec32a3012
commit 3719137ff3

View File

@ -77,7 +77,7 @@ class Viewer:
if not (
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)
if image.mode != base: