Gimp-Forum.net
How do I erase items from a image? - 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: How do I erase items from a image? (/Thread-How-do-I-erase-items-from-a-image)



How do I erase items from a image? - cinque888 - 03-12-2026

Hello,

what are the best ways to remove the flames from the cake candles and still keep the background?

Thank you.



[Image: cake.jpg]



RE: How do I erase items from a image? - rich2005 - 03-13-2026

The image is a bit small, a larger version might give better results.

Total edit: Just re-read the subject and it is just the flames not the candles.. Still using the gimp_gmic_qt plugin http://www.gmic.eu The Inpaint (diffusion transport ) filter.  Use the pencil tool (not paint tool). Pure 100% red for the mask. Include any glow.  Looks like this:

[attachment=14316]

No use trying to save the candle wicks, back to the paint tool and a tiny brush, reduced opacity and paint them in.

[attachment=14317]


RE: How do I erase items from a image? - Scallact - 03-13-2026

We can take advantage of the facts that 
  • flames are lighter than the background
  • the background is a horizontal gradient
So let's go:

With the rectangle select tool, select this small  zone (I added vertical guides to help move the layer later, but that's not mandatory) and copy-paste it as a new layer
[attachment=14310]

Apply a gaussian blur filter, configured like below. Important: check "Merge filter"
[attachment=14311]

Layer > Scale layer. Scale it only vertically by unchecking the chain icon first:
[attachment=14312]

With the move tool, place the layer above the lights:
[attachment=14313]

Set the layer to "Darken only" mode:
[attachment=14314]

With the eraser tool and a rectangular brush, erase the pixels over the candles bodies (wax only, not the flames):
[attachment=14315]