Post Reply 

Turn a certain color into nearby colors

May 27, 2014, 03:42
Post: #1
Turn a certain color into nearby colors
Dear GIMP experts,

I have a country map with province labels written in black. I want to remove these black texts. The problem is that the rest of the image is in different colors, depending on which province it is.

Right now I'm doing it manually: rectangle select each text, color exchange it from black to the color of the province. Whenever a text is written over two province I may have to manually draw in the right colors using the Pencil Tool.

Is there a way to convert all black pixels in my image to the nearby colors (could be red, could be green, etc., depending on the nearby pixels)?

Please see attached image.

Many thanks!


Attached File(s) Thumbnail(s)
   
Find all posts by this user
Quote this message in a reply
May 27, 2014, 04:07
Post: #2
RE: Turn a certain color into nearby colors
Hm...a bit tricky IMHO,

But you can try using the clone stamp tool
OR
Use the eyedropper Colorpicker to pick up the providence color, then use the brush tool Paintbrush to paint out the text.

Clone way
1 Clone click the clone stamp tool.
2. Hold ctrl and left-click a clean color source to clone/copy from.
3. Let go of ctrl & left-click. Then click drag to paint over with clone stamp.

OR paint way (probably easier, less problematic way...)
1. Pick the eyedropper Colorpicker , click on the providence color.
2. Create a new transparent layer "Layer > New Layer "()transparent"
3. Click brush tool Paintbrush & paint on top of text on the "transparent layer

*Both ways will work, clone way will be a little quicker ^_^

"In order to succeed, your desire for success should be greater than fear of failure." BC
[Image: 29uocaf.png]
iFS007 tut vids on YT ~ auto color B&W landscape tut
Visit this user's website Find all posts by this user
Quote this message in a reply
May 27, 2014, 05:15
Post: #3
RE: Turn a certain color into nearby colors
The method I used requires the G'MIC plugin to be installed with your version of Gimp.
If already installed you will find it under Gimp's Filters->G'MIC menu.

1. Open your image. File->Open
2. Add Alpha Channel. Layer->Transparency->Add Alpha Channel
3. Select the color black. Bycolorselect (Default Tool settings)
4. Selection->Grow by 1 pixel.
5. Edit->Clear.
6. Filters->G'MIC
7. Choose Repair->Inpaint [Solidify] (Default settings)
ORIGINAL:
   
NEW:
   
Not perfect, but may save you some time... Wink
Find all posts by this user
Quote this message in a reply
May 27, 2014, 08:01
Post: #4
RE: Turn a certain color into nearby colors
Just an exercise in, "how short a procedure" might be possible.

make color selection (black)
apply heal selection
kill the selection

[Image: D6DRujD.jpg]

Of course all the work is done by the resynthesizer plug-in,
http://registry.gimp.org/node/27986

** https://www.gimp-forum.net/ now answering questions**
Find all posts by this user
Quote this message in a reply
May 28, 2014, 00:45
Post: #5
RE: Turn a certain color into nearby colors
I was thinking about recommending the re-synthesizer plug-in but as this is a beginner section, it might be a bit confusing to install.

Now, if the .py(python) script "heal-selection" can be installed as a stand alone(without resynthesizer plugin), then that would be another option.

As the python script "heal selection" does produce the best result, like PS's content-aware fill ^_^
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Change color of arrow in arrow.scm gogreen 1 366 Jan 31, 2018 05:45
Last Post: ythgilb
  How to color bended text? Msa0503 1 143 Dec 17, 2017 08:23
Last Post: ythgilb
Question Saving to a gif format and choosing the color palette SpongeBob 0 152 Dec 13, 2017 19:13
Last Post: SpongeBob
  Color filled letters Dan M 1 149 Dec 13, 2017 17:12
Last Post: paynekj
  not able to draw different color rectangles manish 1 145 Nov 3, 2017 04:01
Last Post: ythgilb

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS