mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-03-03 11:35:52 +03:00
Merge pull request #1578 from cartisan/numpy-conversion-for-hsv
Enabled conversion to numpy array for HSV images. #1559
This commit is contained in:
commit
65ff8f9f5a
|
@ -250,6 +250,7 @@ _MODE_CONV = {
|
|||
"CMYK": ('|u1', 4),
|
||||
"YCbCr": ('|u1', 3),
|
||||
"LAB": ('|u1', 3), # UNDONE - unsigned |u1i1i1
|
||||
"HSV": ('|u1', 3),
|
||||
# I;16 == I;16L, and I;32 == I;32L
|
||||
"I;16": ('<u2', None),
|
||||
"I;16B": ('>u2', None),
|
||||
|
|
|
@ -113,6 +113,7 @@ class TestNumpy(PillowTestCase):
|
|||
("I;16", '<u2'),
|
||||
("I;16B", '>u2'),
|
||||
("I;16L", '<u2'),
|
||||
("HSV", 'uint8'),
|
||||
]
|
||||
|
||||
for mode in modes:
|
||||
|
|
Loading…
Reference in New Issue
Block a user