doc error on HSB, HSL color values

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

doc error on HSB, HSL color values

Post by fmw42 »

At http://www.imagemagick.org/script/color.php, the discussion still uses the older style of all % for HSB and HSL. I believe some time ago, we switched back to H in range 0-360 with S,B,L in percent. Also there is no discussion of how CMYK values are specified (a simple statement of same as RGB might suffice).

Examples of current values:


convert xc:red -colorspace cmyk txt:
# ImageMagick pixel enumeration: 1,1,65535,cmyk
0,0: (0,65535,65535,0) #0000FFFFFFFF0000 cmyk(0,255,255,0)

convert xc:"cmyk(0%,100%,100%,0%)" -colorspace sRGB txt:
# ImageMagick pixel enumeration: 1,1,65535,srgb
0,0: (65535,0,0) #FFFF00000000 red



convert xc:red -colorspace hsb txt:
# ImageMagick pixel enumeration: 1,1,65535,hsb
0,0: (0,65535,65535) #0000FFFFFFFF hsb(0,100%,100%)

convert xc:"hsb(0,100%,100%)" -colorspace sRGB txt:
# ImageMagick pixel enumeration: 1,1,65535,srgb
0,0: (65535,0,0) #FFFF00000000 red


Please fix the documentation if the above is correct.
Post Reply