Page 1 of 1

doc error on HSB, HSL color values

Posted: 2016-08-02T08:38:40-07:00
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.