Gimp-Forum.net
(Noob) Flood Fill "similar colors" dynamically so I don't have to ctrl-Z and redo? - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: General questions (https://www.gimp-forum.net/Forum-General-questions)
+--- Thread: (Noob) Flood Fill "similar colors" dynamically so I don't have to ctrl-Z and redo? (/Thread-Noob-Flood-Fill-similar-colors-dynamically-so-I-don-t-have-to-ctrl-Z-and-redo)



(Noob) Flood Fill "similar colors" dynamically so I don't have to ctrl-Z and redo? - tgm1024 - 09-08-2018

Gimp 2.10.6 / Linux Mint x64 18.3 / MATE


Brief:
Can I do a flood fill with similar colors but see the results as I slide the bar (dynamically)?

TL;DR:
When I use the bucket pouring flood fill, I'm routinely using the option to fill similar colors.  But this can be a dicey proposition with most images, and if I'm not super careful, I will end up with a flood-leak all over the place.

The way I've been managing this is this:

  1. Try a percentage
  2. See it be not be right
  3. Undo
  4. Rinse/Lather/repeat as needed at step 1.
Is there a way to do this dynamically so that I can see a before shot and dynamic after shot so I can just move the slider and see the results "right away"?

THANKS!


RE: (Noob) Flood Fill "similar colors" dynamically so I don't have to ctrl-Z and redo? - rich2005 - 09-08-2018

I do not know of any way with the default Gimp tools,

You might be able to use the gmic plugin, http://www.gmic.eu Difficult to say without some indication of type of image you are editing.

Using the bucket tool the amount of fill depends on the threshold setting. screenshots https://i.imgur.com/Zbnyspn.jpg

Using gmic, select-replace filter, a bit more work. Selected colour is color picked from within gmic, same spot as bucket fill tool. Replacement color is whatever you want. Output is replaced colour. The tolerance slider acts the same as the bucket fill threshold but is interactive on the preview. screenshot: https://i.imgur.com/HL3NycL.jpg


RE: (Noob) Flood Fill "similar colors" dynamically so I don't have to ctrl-Z and redo? - tgm1024 - 09-09-2018

(09-08-2018, 07:16 PM)rich2005 Wrote: I do not know of any way with the default Gimp tools,

You might be able to use the gmic plugin, http://www.gmic.eu Difficult to say without some indication of type of image you are editing.

Using the bucket tool the amount of fill depends on the threshold setting.  screenshots https://i.imgur.com/Zbnyspn.jpg

Using gmic, select-replace filter, a bit more work. Selected colour is color picked from within gmic, same spot as bucket fill tool. Replacement color is whatever you want. Output is replaced colour. The tolerance slider acts the same as the bucket fill threshold but is interactive on the preview.  screenshot: https://i.imgur.com/HL3NycL.jpg


Hey, thanks for that!  I'll totally look into it.

As a long time software engineer in graphics and imaging, my usual route is to run to Java and write an application dedicated to whatever I need at the moment.

Seems like G'MIC is incredibly broad.