Skip to content

Commit

Permalink
Merge pull request #347 from cgohlke/patch-6
Browse files Browse the repository at this point in the history
Add numpy array interface support for 16 and 32 bit integer modes
  • Loading branch information
aclark4life committed Sep 30, 2013
2 parents 2e4b090 + 9bff0b1 commit 78a41bd
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 78a41bd

Please sign in to comment.