K-means PNG An example program that uses K-means algorithm to reduce the pallete of an image. Code only accepts PNG as input/output format. PNG output is 4x8bit colour format. Still doesn't write in indexed colour format.