From e0bb623438a0e9632d59b9165a5dfff0b0c2647f Mon Sep 17 00:00:00 2001 From: Bryant Mairs Date: Tue, 19 Apr 2016 08:02:13 -0700 Subject: [PATCH] Add open() support for 2-5 band uint16 TIFFs. This only gets us to opening the first band, it doesn't actually allow the other bands to be retrieved. --- PIL/TiffImagePlugin.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PIL/TiffImagePlugin.py b/PIL/TiffImagePlugin.py index 99beb0f97..670962e68 100644 --- a/PIL/TiffImagePlugin.py +++ b/PIL/TiffImagePlugin.py @@ -176,6 +176,10 @@ OPEN_INFO = { (II, 1, (1,), 1, (12,), ()): ("I;16", "I;12"), (II, 1, (1,), 1, (16,), ()): ("I;16", "I;16"), + (II, 1, (1,), 1, (16,16), (0,)): ("I;16", "I;16"), + (II, 1, (1,), 1, (16,16,16), (0,0,)): ("I;16", "I;16"), + (II, 1, (1,), 1, (16,16,16,16), (0,0,0,)): ("I;16", "I;16"), + (II, 1, (1,), 1, (16,16,16,16,16), (0,0,0,0,)): ("I;16", "I;16"), (MM, 1, (1,), 1, (16,), ()): ("I;16B", "I;16B"), (II, 1, (2,), 1, (16,), ()): ("I;16S", "I;16S"), (MM, 1, (2,), 1, (16,), ()): ("I;16BS", "I;16BS"),