mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
Add numpy array interface support for 16 and 32 bit integer modes
This commit is contained in:
parent
2e4b0903e3
commit
9bff0b14e0
12
PIL/Image.py
12
PIL/Image.py
|
@ -224,6 +224,18 @@ _MODE_CONV = {
|
||||||
"RGBA": ('|u1', 4),
|
"RGBA": ('|u1', 4),
|
||||||
"CMYK": ('|u1', 4),
|
"CMYK": ('|u1', 4),
|
||||||
"YCbCr": ('|u1', 3),
|
"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):
|
def _conv_type_shape(im):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user