I have an image of a cartoon, which only has 4 colors (when not anti-aliased).
Is there an image format that analyses the color palette of the image, and compresses it heavily because it only has a few colors? Something like dynamic palette image compression.
Such an image format will be useful in cases when there are only a few colors in the image. The header of the image data should specify the colors used in the image and name them say 0,1,2,3 So now the 2d matrix of image color will contain only 2 bit values which was display a 16 bit value previously. But can display the image without any loss.