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.
I was under the impression that -intensity rec709luminance should produce a result with gamma=1 no matter which of the allowed functions it precedes. This was fixed for -intensity rec709luminance -colorspace gray, but does not seem to be fixed for any of the other allowed functions such as -threshold.
Is this a bug or do I misunderstand how -intensity rec709luminance (or rec601luminance) should behave for functions other than -colorspace gray. See my my subsequent post below?
I might be wrong about my assumptions above. Was it is intended that -intensity was simply a channel mixing function without regard to linearity/non-linearity (colorspace of the input). If so, then I assume one must first use -colorspace RGB to get the linear result, such as the following. If so, that seems a bit inconsistent with how it works with -colorspace gray
If it is required to use -colorspace RGB -intensity rec709luminance, then I do not see why we even need the luminance versions. One could just use
convert image -colorspace RGB -colorspace gray result
rather than
convert image -intensity rec709luminance -colorspace gray result
and
convert image -colorspace RGB -threshold 50% result
rather than
image -colorspace RGB -intensity rec709luminance -threshold 50% result
The bottom line: Was -intensity (and -grayscale) intended just to be channel mixing functions without regard to linear or nonlinear results? If so, then perhaps it was a mistake to have -colorspace gray sensitive to the linearity from luminance or luma while all the other functions are not. And if we change back to that channel mixing only pardigm, are there consequences or differences if we eliminate the luminance arguments to -intensity and simply precede it with -colorspace RGB in order to get the linear results.
How do we make -intensity work consistently so that it is clearly understood how it works?
Last edited by fmw42 on 2013-10-31T20:25:09-07:00, edited 1 time in total.
The latter converts first to linear (RGB), but then -colorspace gray converts back to non-linear (sRGB)
So the question becomes, should -intensity rec709luminance when used with other functions require -colorspace RGB to precede it or should it automatically force a conversion to linear (gamma=1) like it does for -colorspace gray.
After all these post, I think I have a better understanding of -intensity. So rather than rocking the boat and changing anything. I am OK with it as is.