From 8b76f557cedc0a01255f277625dcecac3930f998 Mon Sep 17 00:00:00 2001 From: cartisan Date: Mon, 7 Dec 2015 17:40:42 +0000 Subject: [PATCH] Enabled conversion to numpy array for HSV images. #1559 --- CHANGES.rst | 3 +++ PIL/Image.py | 1 + Tests/test_numpy.py | 1 + 3 files changed, 5 insertions(+) diff --git a/CHANGES.rst b/CHANGES.rst index e2a60eff9..cada7cc01 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -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] diff --git a/PIL/Image.py b/PIL/Image.py index af6dac1c4..4b9f3868f 100644 --- a/PIL/Image.py +++ b/PIL/Image.py @@ -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), diff --git a/Tests/test_numpy.py b/Tests/test_numpy.py index 64081894e..4f02fde23 100644 --- a/Tests/test_numpy.py +++ b/Tests/test_numpy.py @@ -113,6 +113,7 @@ class TestNumpy(PillowTestCase): ("I;16", 'u2'), ("I;16L", '