Starting with IM 6.8.6.0 all grayscale colors and grayscale gradients are now non-linear (by default) with gamma=0.4545 rather than the ones with gray(...) being linear with gamma=1 (which was the case from about IM 6.7.8.3).
So the following formats that used to be linear (gamma=1) are now non-linear (gamma=0.4545)
gray(xx)
gray(xx%)
gradient:"gray(xx)-gray(yy)"
gradient:"gray(xx%)-gray(yy%)"
Named grayscale or gradient with named grayscale colors are still non-linear with gamma=0.4545
The only exceptions seems to be in IM 6.8.7.1 where gamma=1 (linear) for both gray(...) and gray(...) gradients
and in IM 6.8.7.2 where only the gray(...) gradients still show gamma=1 (linear), but simple gray(...) colors have gamma=0.4545 (non-linear)
To create linear gray scale colors one can do either:
1) use icc-color(rgb,xx,xx,xx) to get a linear gray
NOTE: that is different from icc-color(
srgb,xx,xx,xx) with produces a non-linear gray
see
http://www.imagemagick.org/script/color.php
e.g.
convert -size 100x100 xc:"icc-color(rgb,128,128,128)" -format "%[gamma]\n" info:
1
2) use xc:gray -intensity rec709luminance -colorspace gray
e.g.
convert -size 100x100 xc:gray -intensity rec709luminance -colorspace gray -format "%[gamma]\n" info:
1