Enabled conversion to numpy array for HSV images. #1559

This commit is contained in:
cartisan 2015-12-07 17:40:42 +00:00
parent d392b423cd
commit 8b76f557ce
3 changed files with 5 additions and 0 deletions

View File

@ -4,6 +4,9 @@ Changelog (Pillow)
3.1.0 (unreleased)
------------------
- Enabled conversion to numpy array for HSV images. #1559
[cartisan]
- Fix command to invoke ghostscript for eps files. #1478
[baumatron, radarhere]

View File

@ -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),

View File

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