Page 1 of 1

convert white shade to red shade using recolor

Posted: 2012-02-18T21:57:37-07:00
by sujan.dasmahapatra
how can i convert white shade into red shade using recolor. i am trying like this but it's not coming.

Code: Select all

convert shirt0.jpg  -recolor '1 0 0 0 0 0 1 1 1' shirtmod01.jpg

Re: convert white shade to red shade using recolor

Posted: 2012-02-20T23:28:35-07:00
by anthony
JUst turn off the green and blue channels!

Code: Select all

convert image.png -color-matrix '1,0,0  0,0,0  0,0,0' result.png
This has the same effect as using +level-colors ,red a straight linear white to red modification of RGB values.

however is this what you want? You may get a better result by doing the level on a grayscale image!

Code: Select all

convert image.png -type grayscale +level-colors ,red result.png
Or doing both operations together using some varient of...
convert image.png -color-matrix '.2 .5 .3 0,0,0 0,0,0' result.png