Then I run it through this command...
Code: Select all
magick input.png ^
( -clone 0 -gamma 0.5,1,1 ) ^
( -clone 0 -gamma 1,0.5,1 ) ^
( -clone 0 -gamma 1,1,0.5 ) +append out_A.png
The left image is unchanged, of course. The second appears to be gamma adjusted across all three RGB channels, while the two on the right are identical to the input. It looks like the first argument to "gamma", the one I understand should act on the red channel, is the only one being recognized, and that argument is applied to all three channels. That doesn't seem right.
Here's a simulation of the behavior I would expect. I apply the "-gamma" operations after activating individual channels with "-channel" like this...
Code: Select all
magick input.png ^
( -clone 0 -channel R -gamma 0.5 -channel G -gamma 1 -channel B -gamma 1 ) ^
( -clone 0 -channel R -gamma 1 -channel G -gamma 0.5 -channel B -gamma 1 ) ^
( -clone 0 -channel R -gamma 1 -channel G -gamma 1 -channel B -gamma 0.5 ) +append out_B.png
Setting "-channel" and running the "-gamma" operation on each does make the per-color adjustments, but I'd think using three arguments with the "-gamma" operator should create an identical result, and I'm not getting it. Any ideas?