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:
I first convert it to grayscale, and then use colorfilter. I get something like:
I've lost some detail at the bottom. I want to end up getting something like:
The hex code for the red color is #960032
Converting multi color image to a single color
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Converting multi color image to a single color
Try
Adjust the fuzz value as desired.
Code: Select all
convert 0Z3wSND.jpg -fuzz 5% -fill white -opaque "#ECE5D3" -colorspace gray +level-colors "#960032,white" result.png
Re: Converting multi color image to a single color
Thanks, this worked really well!