From bde4613843fb2dde6c3f8fb482925acb437c7bc4 Mon Sep 17 00:00:00 2001 From: wiredfool Date: Tue, 15 Oct 2013 22:04:22 -0700 Subject: [PATCH] format including the padding byte --- _imagingcms.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_imagingcms.c b/_imagingcms.c index 1548769d5..b2903adbf 100644 --- a/_imagingcms.c +++ b/_imagingcms.c @@ -237,7 +237,8 @@ findLCMStype(char* PILmode) return TYPE_YCbCr_8; } else if (strcmp(PILmode, "LAB") == 0) { - return TYPE_Lab_8; + // LabX equvalent like ALab, but not reversed -- no #define in lcms2 + return (COLORSPACE_SH(PT_LabV2)|CHANNELS_SH(3)|BYTES_SH(1)|EXTRA_SH(1)); } else {