Merge pull request #1578 from cartisan/numpy-conversion-for-hsv

Enabled conversion to numpy array for HSV images. #1559
This commit is contained in:
wiredfool 2015-12-14 20:55:47 +00:00
commit 65ff8f9f5a
2 changed files with 2 additions and 0 deletions

View File

@ -250,6 +250,7 @@ _MODE_CONV = {
"CMYK": ('|u1', 4), "CMYK": ('|u1', 4),
"YCbCr": ('|u1', 3), "YCbCr": ('|u1', 3),
"LAB": ('|u1', 3), # UNDONE - unsigned |u1i1i1 "LAB": ('|u1', 3), # UNDONE - unsigned |u1i1i1
"HSV": ('|u1', 3),
# I;16 == I;16L, and I;32 == I;32L # I;16 == I;16L, and I;32 == I;32L
"I;16": ('<u2', None), "I;16": ('<u2', None),
"I;16B": ('>u2', None), "I;16B": ('>u2', None),

View File

@ -113,6 +113,7 @@ class TestNumpy(PillowTestCase):
("I;16", '<u2'), ("I;16", '<u2'),
("I;16B", '>u2'), ("I;16B", '>u2'),
("I;16L", '<u2'), ("I;16L", '<u2'),
("HSV", 'uint8'),
] ]
for mode in modes: for mode in modes: