I try to use:
Code: Select all
sudo convert input.png -channel GB -fx 'R' output.png
Code: Select all
sudo convert input.png -channel RGB -fx 'R' output.png
Code: Select all
sudo convert input.png -channel G -fx 'R' output-step1.png
sudo convert output-step1.png -channel B -fx 'R' output-step2.png
Commands like '-negate' and '-separate' also raising color to the power 2.2.
For example, the next line works fine:
Code: Select all
sudo convert input.png -channel G -fx 'R' output-step1.png
How to get G and B channels equal to the R channel without raising to the power? (or without raising all image to the power 1/2.2).