From 9bff0b14e0b4e3b6f53d2251c186f208125bd7d9 Mon Sep 17 00:00:00 2001 From: Christoph Gohlke Date: Sun, 29 Sep 2013 19:30:43 -0700 Subject: [PATCH] Add numpy array interface support for 16 and 32 bit integer modes --- PIL/Image.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/PIL/Image.py b/PIL/Image.py index 2e120e500e5..56a4b709364 100644 --- a/PIL/Image.py +++ b/PIL/Image.py @@ -224,6 +224,18 @@ def isImageType(t): "RGBA": ('|u1', 4), "CMYK": ('|u1', 4), "YCbCr": ('|u1', 3), + "I;16": ('=u2', None), + "I;16B": ('>u2', None), + "I;16L": ('i2', None), + "I;16LS": ('u4', None), + "I;32L": ('i4', None), + "I;32LS": ('