From 802a1430fe17f7380a6fea0e31a2fa4a2af5d343 Mon Sep 17 00:00:00 2001 From: Jay-Jay Aslan Date: Wed, 5 Oct 2022 11:03:51 +0200 Subject: [PATCH] added support for 16 bit integer tiffs --- src/PIL/TiffImagePlugin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/PIL/TiffImagePlugin.py b/src/PIL/TiffImagePlugin.py index 766d46ffb..3ea3d971a 100644 --- a/src/PIL/TiffImagePlugin.py +++ b/src/PIL/TiffImagePlugin.py @@ -169,6 +169,7 @@ OPEN_INFO = { (II, 0, (1,), 2, (8,), ()): ("L", "L;IR"), (MM, 0, (1,), 2, (8,), ()): ("L", "L;IR"), (II, 1, (1,), 1, (8,), ()): ("L", "L"), + (II, 0, (1,), 1, (16,), ()): ("I", "I;16"), (MM, 1, (1,), 1, (8,), ()): ("L", "L"), (II, 1, (1,), 2, (8,), ()): ("L", "L;R"), (MM, 1, (1,), 2, (8,), ()): ("L", "L;R"),