I have 1000 1-bit images that feature lines of ~20 pixels width. However, there are sometimes small 1-pixel holes and frayed bits which create an issue when I vectorize the lines in a Geographic Information system. I attach 2 screenshots to show how this creates a problem in the vectorization.
So, I'd need to blur the image or smooth it some way that these 1-pixel gaps are filled without changing the image size. And I'm looking for a batch process because doing this by hand over 1000 times is not in my plans. I do have Photoshop and IrfanView installed.
I tried to blur and compress the images, but it was no good.
As per request, the result should look like this: