Page 1 of 1

Color?

Posted: 2013-09-11T08:44:25-07:00
by mjn
convert -size 1024x1024 xc:transparent -fill transparent -stroke "#b82a21" -strokewidth 36 -draw "stroke-linejoin round polyline 334,82 690,82 942,334 942,690 690,942 334,942 82,690 82,334 334,82" result.png

The pixels in the above image turn out to be #b92728 instead of #b82a21. Why is that so? How can I draw with an *exact* colour?

Thanks, regards, Marcel

Re: Color?

Posted: 2013-09-11T09:03:40-07:00
by snibgo
Trying your command on IM v6.8.6-8 in Windows 7, I get the correct colour, #b82a21.

Re: Color?

Posted: 2013-09-11T09:09:49-07:00
by mjn
I'm using IM 6.8.6-6 on OS X 10.8.4

Re: Color?

Posted: 2013-09-11T09:39:38-07:00
by snibgo
I found the colour value with Gimp. How did you find #b92728?

Put your result.png on Dropbox or somewhere, and post the URL here.

Re: Color?

Posted: 2013-09-11T09:59:08-07:00
by mjn

Re: Color?

Posted: 2013-09-11T10:09:00-07:00
by snibgo
Gimp reports the colour as #b82a21. What tool are you using to find the colour?

Re: Color?

Posted: 2013-09-11T10:12:47-07:00
by mjn
Several. Acorn & ColorSnapper.

Re: Color?

Posted: 2013-09-11T10:19:06-07:00
by mjn
I'm adding graphics with IM to an an image that was created with other graphical programs. And I can see a colour difference between the different elements, even though they all should all be the same. So, we can conclude that the problem is not with IM.

Re: Color?

Posted: 2013-09-11T10:19:45-07:00
by fmw42
Turn off anti-aliasing otherwise you get some pixels that are blended with the transparency and its undercolor.

convert -size 1024x1024 xc:transparent -fill transparent -stroke "#b82a21" -strokewidth 36 +antialias -draw "stroke-linejoin round polyline 334,82 690,82 942,334 942,690 690,942 334,942 82,690 82,334 334,82" result2.png

convert result2.png -format "%c" histogram:info:
944536: ( 0, 0, 0, 0) #00000000 none
104040: (184, 42, 33,255) #B82A21 srgba(184,42,33,1)

IM 6.8.6.9 Q16 Mac OSX Snow Leopard

Re: Color?

Posted: 2013-09-11T15:11:31-07:00
by mjn
Thanks, that's it!