still problems converting colors with txt: IM 6.4.3-7 beta

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
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

still problems converting colors with txt: IM 6.4.3-7 beta

Post by fmw42 »

With regard to bug report viewtopic.php?f=3&t=12002

I am testing on IM 6.4.3-7 beta Q16 and still find some oddities.

Before, there was an a triple or quadruple for r,g,b,a values on the left and a comment of rgba() on the right. The left side values now do seem to represent alpha but the rgba() on the right is gone and now there is a set of hex values that are duplicated on the right. Would it be possible to get back the rgba() values on the very right (with correct alpha values) as well as the hex values and get rid of one of the redundant copies of the hex values? This way the left side values can represent alpha in the range 0-QuantumMax and the right side values can represent alpha in the range 0-1 to be consistent with the definitions of rgb(a) colors at http://imagemagick.org/script/color.php

This is what it was in IM 6.4.3-6:
convert -size 1x1 xc:"rgba(100%,75%,50%,0.25)" -depth 8 txt:
# ImageMagick pixel enumeration: 1,1,255,rgba
0,0: (255,191,127, 64) #FFBF7F40 rgba(255,191,127,0.74902)

but the alpha value on the right side was the complement of what it should be for an alpha (it should have been .25 to match what shows in the input.)

This is what is now showing in IM 6.4.3-7 beta:

convert -size 1x1 xc:"rgba(100%,75%,50%,0.25)" -depth 8 txt:
# ImageMagick pixel enumeration: 1,1,255,rgba
0,0: (255,191,127, 64) #FFBF7F40 #FFBF7F40

convert -size 1x1 xc:"hsla(180,100%,50%,0.25)" -colorspace rgb -depth 8 txt:
# ImageMagick pixel enumeration: 1,1,255,rgba
0,0: ( 0,255,255, 64) #00FFFF40 #00FFFF40

convert -size 1x1 xc:"cmyka(100%,100%,0%,50%,0.25)" -colorspace rgb -depth 8 txt:
# ImageMagick pixel enumeration: 1,1,255,rgba
0,0: ( 0, 0,127, 64) #00007F40 #00007F40

convert -size 1x1 xc:"#fe9843ca" -depth 8 txt:
# ImageMagick pixel enumeration: 1,1,255,rgba
0,0: (254,152, 67,202) #FE9843CA #FE9843CA

I apologize if this is premature and you are still working on it.

Thanks
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: still problems converting colors with txt: IM 6.4.3-7 beta

Post by magick »

Doh! The problem is fixed in the ImageMagick subversion trunk. Thanks.
Post Reply