mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Do not convert I;16 image when format is PNG
This commit is contained in:
parent
20282dd23c
commit
e1ae9a50cb
|
@ -71,7 +71,8 @@ class Viewer:
|
|||
|
||||
# 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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user