i want to know that is possible in image magick that convert all image color into one color. Like in one image there is 4 different colors and i want to replace these 4colors in one color like in black.
if it could be possible than how..reply soon
convert multiple color image into one color
-
- Posts: 38
- Joined: 2010-12-14T03:56:10-07:00
- Authentication code: 8675308
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: convert multiple color image into one color
try something like the following.
convert image -fuzz XX% -fill newcolor -opaque oldcolor1 -opaque oldcolor2 -opaque oldcolor3 -opaque oldcolor4 resultimage
The -fuzz XX% is to allow you to change similar colors if your 4 colors are not pure and have some variation. If you can post a link to an example image, then we can probably help better to demonstrate with your image.
see
http://www.imagemagick.org/Usage/color_basics/#replace
convert image -fuzz XX% -fill newcolor -opaque oldcolor1 -opaque oldcolor2 -opaque oldcolor3 -opaque oldcolor4 resultimage
The -fuzz XX% is to allow you to change similar colors if your 4 colors are not pure and have some variation. If you can post a link to an example image, then we can probably help better to demonstrate with your image.
see
http://www.imagemagick.org/Usage/color_basics/#replace