Foreground and Background color change problem

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
Shady

Foreground and Background color change problem

Post by Shady »

Hi,

I am newest user to ImageMagick tool. I am not very much familiar with the commands. I am trying to change the background color to white and also trying to bring uniformity almost the foreground color as they are of 3 different colors
Mainly - Green
Red
White
and I want them to be in one single color say green1.

I am using ImageMagick on windows machine and I am using the following command

Code: Select all

[path of the input file] ^( +clone -matte -transparent green1 -fill white -colorize 100% ^) -composite [path of the output file]
I am not able to get any change in the code strangely. I am using a latest version of ImageMagick. Please give me some suggestions on this one

This link to the image is
[img]
http://neuromorpho.org/neuroMorpho/neur ... e=cnic_001
[/img]
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Foreground and Background color change problem

Post by fmw42 »

try this:

convert cnic_001.png -colorspace gray -threshold 20% +level-colors black,green1 cnic_001_proc4.png

20% threshold was needed to avoid seeing and coloring the dark grid lines that you cannot see in the original but which are there.
Post Reply