Convert image to one color

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
ca10c3sar
Posts: 2
Joined: 2017-10-03T06:35:05-07:00
Authentication code: 1151

Convert image to one color

Post by ca10c3sar »

Image
http://prntscr.com/gsqta9

What best command i could use to convert this image, to another one, with that arrows just in one color.

I tried -monochrome, but got bad result:
Image
http://prntscr.com/gsqu3f

It can be converted to any color, i just need all those arrows just in one color which good quality

p.s: sorry dont speak english well
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Convert image to one color

Post by fmw42 »

I am not sure what you want? Try this:

Code: Select all

convert SdJ22tbmTTOpo1s-XyQ4QA.png -fuzz 7% -fill "#D76B22" -opaque "#D76B22" -fill black +opaque "#D76B22" result.png
or

Code: Select all

convert SdJ22tbmTTOpo1s-XyQ4QA.png -fuzz 7% -fill white -opaque "#D76B22" -fill black +opaque white result.png

Is that what you want?

Please always provide your IM version and platform when asking questions on this forum.
ca10c3sar
Posts: 2
Joined: 2017-10-03T06:35:05-07:00
Authentication code: 1151

Re: Convert image to one color

Post by ca10c3sar »

Thank you for your time, whiling to help :)

I used both code you posted, result:
http://prntscr.com/gtoils

I need convert those arrows to just one color, i run a macro that capture the image, each time it capture the arrow came with a different color, then i need convert it to just one color so i can read it, doesn't matter with color as result.

Examples:
http://prntscr.com/gtoldn

p.s windows10, latest im version
Post Reply