> #!/bin/sh
> echo 'Content-Type: image/gif'
> echo
> djpeg [any options] filename | ppmtogif
I would add a ppmquant to that pipeline. Keeping it down to 16 colours
seems a good compromise for small pictures. You will have to try a bit
to find an acceptable number of colours for your application, but
remember that many browsers can't show more than 50 colours pr. Web
document.