| 24bit RGB | 256 color Indexed| | - | - | |  |  | colorsquash is a colour quantization[^1] crate and algorithm. At it's core, it sorts the colors of an image by how frequently they appear, greatest to least. It then goes through those colours and takes the top N colours that are sufficiently different. [^1]: [wikipedia: color quantization](https://en.wikipedia.org/wiki/Color_quantization) ### squash A CLI tool to quantize colours :D Accepts JPEG and PNG as input and can output indexed PNG and GIF.