-colorspace Lab txt:-

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
User avatar
GreenKoopa
Posts: 457
Joined: 2010-11-04T17:24:08-07:00
Authentication code: 8675308

-colorspace Lab txt:-

Post 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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: -colorspace Lab txt:-

Post 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%)
snibgo's IM pages: im.snibgo.com
Post Reply