One thing I'm pretty sure about is that Argon does not want to convert to a grey level image : in a previous thread, I proposed an elementary conversion to 8 bits grey, and I got no reaction, except this new thread
😉The conversion from 24 bits RGB to 8 bits could use a standard palette containing a limited number of colours. One of the simplest palette is the web color palette, composed of all possible combinations of 6 RGB levels, with equidistant hexadecimal values ($00, $33, $66, $99, $CC (I love that one) and $FF. That gives 6x6x6 = 216 combinations. There is even some room for some specific colors ! The coding is a simple search for the nearest color level.
Of course that is not optimal. Depending on the image to be coded, that could led to awfull results. Image for instance a snowy landscape. Here all the color shades should be in the upper values of R,G and B, just to create enough variations of light grey levels.
But that could be a start...
Chilly Charly (aka CC)