Skip to content

Commit

Permalink
Merge pull request #4744 from radarhere/show
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored Jun 29, 2020
2 parents 74a4c88 + e1ae9a5 commit e1c6084
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/PIL/ImageShow.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ def show(self, image, **options):

# save temporary image to disk
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)
if image.mode != base:
Expand Down

0 comments on commit e1c6084

Please sign in to comment.