I made an art program I titled PixelSmoosh: https://gitlab.com/zanehenderson/pixelsmoosh
You give it a set of source images and a target image. For each pixel in the target image, it will look at the same pixel in each of the source images and choose the closest colour, using that pixel to then paint a new image.