Skip to content

Commit

Permalink
Add numpy array interface support for 16 and 32 bit integer modes
Browse files Browse the repository at this point in the history
  • Loading branch information
cgohlke committed Sep 30, 2013
1 parent 2e4b090 commit 9bff0b1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions PIL/Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": ('<u2', None),
"I;16S": ('=i2', None),
"I;16BS": ('>i2', None),
"I;16LS": ('<i2', None),
"I;32": ('=u4', None),
"I;32B": ('>u4', None),
"I;32L": ('<u4', None),
"I;32S": ('=i4', None),
"I;32BS": ('>i4', None),
"I;32LS": ('<i4', None),
}

def _conv_type_shape(im):
Expand Down

0 comments on commit 9bff0b1

Please sign in to comment.