Well, now I know _why_ it's failing. We don't have a concept for LAB color

This commit is contained in:
wiredfool 2013-10-10 23:02:33 -07:00
parent b506e2ad44
commit ac38d91a2d
2 changed files with 2 additions and 0 deletions

BIN
Tests/images/lena.Lab.tif Normal file

Binary file not shown.

View File

@ -98,6 +98,8 @@ def test_lab_color_profile():
def test_lab_color():
pLab = ImageCms.createProfile("LAB")
t = ImageCms.buildTransform(SRGB, pLab, "RGB", "RGB")
# need to add a type mapping for some PIL type to TYPE_Lab_8 in findLCMSType,
# and have that mapping work back to a PIL mode. (likely RGB)
i = ImageCms.applyTransform(lena(), t)
assert_image(i, "RGB", (128, 128))