Possible bug LAB conversion or txt: IM 6.8.0.6 Q16
Posted: 2012-11-26T16:15:25-07:00
IM 6.8.0.6 Q16 Mac OSX Snow Leopard
While researching for topic viewtopic.php?f=1&t=15564&start=15#p92944, I tried to check out the correspondence of LAB=50,0,0 and sRGB=119,119,119 per http://en.wikipedia.org/wiki/Middle_gray.
Using the color calculator at http://www.brucelindbloom.com/index.htm ... lator.html, it shows the above correspondence. That is if I put in LAB=50,0,0, I get RGB=0.466327,0.466327,0.466327, where I assume 50 is 50% in LAB and RGB is in range 0 to 1. So 0.466327*255=119. Alternately clicking the scale RGB checkbox after the calculation gives 118.9134. You can see this also at his example page at http://www.brucelindbloom.com/index.htm ... lator.html
But using IM, I get
convert -size 1x1 xc:"rgb(119,119,119)" -colorspace LAB txt:
# ImageMagick pixel enumeration: 1,1,65535,cielab
0,0: (32790,32769,32766) #801680017FFE cielab(50.0343%,50.0023%,49.9977%)
Thus sRGB=119,119,119 does not convert to LAB=50%,0%,0%, but seems to convert to LAB=50%,50%,50% using the txt: output format.
Am I doing something wrong here?
While researching for topic viewtopic.php?f=1&t=15564&start=15#p92944, I tried to check out the correspondence of LAB=50,0,0 and sRGB=119,119,119 per http://en.wikipedia.org/wiki/Middle_gray.
Using the color calculator at http://www.brucelindbloom.com/index.htm ... lator.html, it shows the above correspondence. That is if I put in LAB=50,0,0, I get RGB=0.466327,0.466327,0.466327, where I assume 50 is 50% in LAB and RGB is in range 0 to 1. So 0.466327*255=119. Alternately clicking the scale RGB checkbox after the calculation gives 118.9134. You can see this also at his example page at http://www.brucelindbloom.com/index.htm ... lator.html
But using IM, I get
convert -size 1x1 xc:"rgb(119,119,119)" -colorspace LAB txt:
# ImageMagick pixel enumeration: 1,1,65535,cielab
0,0: (32790,32769,32766) #801680017FFE cielab(50.0343%,50.0023%,49.9977%)
Thus sRGB=119,119,119 does not convert to LAB=50%,0%,0%, but seems to convert to LAB=50%,50%,50% using the txt: output format.
Am I doing something wrong here?