Setting an image color curve for three channels individually?
Posted: 2019-06-15T02:10:41-07:00
I have the following Curve that I would like to apply to an image by using ImageMagick. This curve removes the green by setting the slope of the Green to 0/0. Then the RED and BLUE follow the points,
0,0
254,0
255,255
I was able to get the first part. Removing the green from the image was easy.
This was SUPER SIMPLE. So thank you devs for that!
However. I am having a seriously rough time getting the last part, which is setting the curve of the last two colors.
I'm sure there is a way to do it because I know that ImageMagick can do literally anything that Photoshop/paint can do. So what is it that I'm missing? I've only ever used ImageMagick for throwing together some mailpieces for my smart home. Again, Thanks devs! I know... Wrong place to give thanks but I am SUPER grateful for such an amazing program that allows such versatile manipulation of images!
0,0
254,0
255,255
I was able to get the first part. Removing the green from the image was easy.
Code: Select all
convert Testme.png -channel G -evaluate set 0 +channel test.png
However. I am having a seriously rough time getting the last part, which is setting the curve of the last two colors.
I'm sure there is a way to do it because I know that ImageMagick can do literally anything that Photoshop/paint can do. So what is it that I'm missing? I've only ever used ImageMagick for throwing together some mailpieces for my smart home. Again, Thanks devs! I know... Wrong place to give thanks but I am SUPER grateful for such an amazing program that allows such versatile manipulation of images!