possible bug icc-color(gray...) no linear
Posted: 2017-12-26T13:11:30-07:00
.
I believe icc-colors should support both linear and non-linear colors in IM 6.9.9.28 and 7.0.7.16
sRGB 0.454545 <-- correct
RGB 1 <-- correct
sGray 0.454545 <-- correct
convert xc:"icc-color(gray,1)" -format "%[colorspace] %[gamma]\n" -write info: linear_white.png
sGray 0.454545 <-- incorrect -- should be Gray 1
identify -verbose linear_white.png
Colorspace: sGray <-- incorrect -- should be Gray 1
Type: Bilevel
Gamma: 0.45455 <-- incorrect -- should be Gray 1
I believe icc-colors should support both linear and non-linear colors in IM 6.9.9.28 and 7.0.7.16
Code: Select all
convert xc:"icc-color(srgb,1,0,0)" -format "%[colorspace] %[gamma]\n" -write info: non-linear_red.png
Code: Select all
convert xc:"icc-color(rgb,1,0,0)" -format "%[colorspace] %[gamma]\n" -write info: linear_red.png
Code: Select all
convert xc:"icc-color(sgray,1)" -format "%[colorspace] %[gamma]\n" -write info: non-linear_white.png
convert xc:"icc-color(gray,1)" -format "%[colorspace] %[gamma]\n" -write info: linear_white.png
sGray 0.454545 <-- incorrect -- should be Gray 1
identify -verbose linear_white.png
Colorspace: sGray <-- incorrect -- should be Gray 1
Type: Bilevel
Gamma: 0.45455 <-- incorrect -- should be Gray 1