Lab is Uint, Int, Int. Tests failing

This commit is contained in:
wiredfool 2013-10-11 23:31:47 -07:00
parent cb9440a2f5
commit ace78d0734
2 changed files with 3 additions and 1 deletions

View File

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

View File

@ -102,6 +102,8 @@ def test_lab_color():
# and have that mapping work back to a PIL mode. (likely RGB)
i = ImageCms.applyTransform(lena(), t)
assert_image(i, "LAB", (128, 128))
i.save('temp.lab.tif')
target = Image.open('Tests/images/lena.Lab.tif')