Basically, if you look at the image I want to fill the white noise if it's surrounded by black pixels. Maybe not a single white pixel but I definitely would like to fill the bigger patches. I was thinking maybe I can use javascript logic and scan the image and find white patches within certain sizes, then I can check if they are sounded by black or not. Is there an easy way to do this?
The reason I am asking is this is a tiny zoomed crop of an image I am currently trying to edit. I have a lot of these images and I need to find a way to do this automatically or semi automatically. There is no way I can sit down and do all these myself.