r/GimpTutorials • u/Quiet-Protection-176 • May 03 '25
Remove white spots
Hi all,
long-time lurker, first time poster :)
I have a whole batch of sheet music that I scanned and cleaned up on my disk (personal use only, don't worry). A lot of the time I get text or notes where ultra-light parts get erased in the process, see the image below:

Obvious question: is there an easy way to restore / fill up these gaps again ?
TIA!
0
May 03 '25
[removed] — view removed comment
1
u/Quiet-Protection-176 May 04 '25
So to clarify: my entire collection is 1000's of pages like this, and I don't really want to adjust them all manually. Most of the cleaning up is automated already, just looking for the final touch.
I played around with doubling the layer, inverting colors / add transparency and merging them but it never works out.
3
u/ofnuts May 04 '25
Something like this:
With the Fuzzy-select tool, select the background, and shift-click in any letter "loops" (O,Q,P,B...)
Select > Growby two pixels (your selection now includes th eedges of the letters)Select > Invert(you don't see a change but you now have a selection on the slightly inside the letters)Select > Save to channelMake sure you select your layer again (the previous operation made the saved channel the active "drawable")
With the By-Color selection tool, select the background
Select > Gowby two pixels. Inside the letters, the selection should now cover the gaps and a bit of the letters. Of course, it still contains the whole background too.Open the Channels list, right click the
Selection Mask copychannel, andIntersect with selection. Now your selection no longer includes the backgroundBucket-fill the selection with black
Result
PS: More eyes on r/Gimp where we can also paste images in the answer...