What am I looking for:
I am looking for a plugin that takes an image and reduces the colors to a very small number (e.g. <10). Additionally, large areas should have the same color (i am not interested in single pixel having a different color than the pixels around.
Where do I need this:
My wife bought an embroidery machine. On the internet we can look for cliparts as embroidery pattern (private usage only). Usually we find an image that looks good. If this image only consists of, lets say, 8 images, everything is fine. We import it into the stitching program, tell the program to stitch the red parts of the image in some way, the green parts in some other way and so on. However, the program relies on the pixel to have EXACTLY the same color.
The problem arises, if the image was saved as jpeg or if some antialializing smoothed black borders or something similar.
What we did so far:
Until now, I worked with gimp, used the function "Threshold" to make a black/white image essentially only containing the black borders and flood-filling everything again.
What might be special in my case:
I am not interested in single pixels. If, by antialializing, a pixel an a black border of a red area is somewhere between black and red i do not care how the plugin colors it, as long as it is either black or red.
However, I do not want small areas of pixels having a different color than its neighbourhood.