- Select by color
- Select>Save to channel
- Enter quick mask
- Filter>Generic>Erode (this will remove all the single-pixel items)
- Filter>Generic>Dilate (twice!), to get a selection slightly larger than original
- Exit quickmask
- In the Channels list, right click the save selection and "Intersect with selection".
The problem with the technique above is that very thin lines may be removed as well, so a more accurate technique using
with a filter of mine:
ofn-path-filter-strokes (Read the HTML included in the ZIP).
- Select by color on black
- Select>Save to channel
- Select>To path
- Open the path list, right click the path, and Tools>Filter strokes on size
- Keep large strokes, measure segment count, threshold 4 (it seems that the single-pixel selection is always translated into a 3-segments path.
- At that point your path should have been vastly simplified, with only the big chunks remaining
- On the new path: Right click and "Path to selection"
- Select>Grow by one pixel
- Open the Channels list, right click on the save selection, and "Intersect with selection"
You should now have a selection on everything that is bigger than a pixel.