Page 1 of 1

-colorspace Lab txt:-

Posted: 2014-01-18T21:11:29-07:00
by GreenKoopa
This output appears incorrect:

> convert -size 1x1 xc:#0FF -colorspace Lab txt:-
# ImageMagick pixel enumeration: 1,1,65535,cielab
0,0: (91.1147%,-18.8556%,-5.54665%) #E94000000000 cielab(91.1147%,-18.8556%,-5.54665%)

In memory, IM stores a & b offset by #8000 to handle negative values. This is not being handled properly when outputting.

ImageMagick 6.8.8-1 Q16 x64 2013-12-25 on Windows 7

Re: -colorspace Lab txt:-

Posted: 2014-01-18T21:56:45-07:00
by snibgo
Confirmed in 6.8.8-0 on Windows.

I think I reported a similar bug about a year ago. The problem is only in the hex digits sent to the console. The value is stored okay in files.
F:\web\im>%IM%convert xc:#0ff -colorspace LAB t.tiff

F:\web\im>%IM%convert t.tiff txt:
# ImageMagick pixel enumeration: 1,1,65535,cielab
0,0: (91.1147%,-18.8571%,-5.54818%) #E94000000000 cielab(91.1147%,-18.8571%,-5.54818%)