Merge pull request #4744 from radarhere/show

This commit is contained in:
Hugo van Kemenade 2020-06-29 20:23:08 +03:00 committed by GitHub
commit e1c608486a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: