Page 1 of 1

Converting multi color image to a single color

Posted: 2016-10-13T04:07:47-07:00
by hiemanshu
I'm trying to convert a multi color image into a single color image. I've tried converting it first to grayscale and then tinting, and also tried using fred's colorfilter script. It works well for a lot of cases but in some cases I end up losing details.

For example I use this image:

Image

I first convert it to grayscale, and then use colorfilter. I get something like:

Image

I've lost some detail at the bottom. I want to end up getting something like:

Image

The hex code for the red color is #960032

Re: Converting multi color image to a single color

Posted: 2016-10-13T10:02:32-07:00
by fmw42
Try

Code: Select all

convert 0Z3wSND.jpg -fuzz 5% -fill white -opaque "#ECE5D3" -colorspace gray +level-colors "#960032,white" result.png
Adjust the fuzz value as desired.

Re: Converting multi color image to a single color

Posted: 2016-10-17T12:05:11-07:00
by hiemanshu
Thanks, this worked really well!