[7009] in www-talk@info.cern.ch

home help back first fref pref prev next nref lref last post

Re: Image Converters

daemon@ATHENA.MIT.EDU (Steinar Bang)
Wed Dec 14 12:19:55 1994

Date: Wed, 14 Dec 1994 17:43:49 +0100
Errors-To: listmaster@www0.cern.ch
Reply-To: steinarb@falch.no
From: Steinar Bang <steinarb@falch.no>
To: Multiple recipients of list <www-talk@www0.cern.ch>

>>>>> wmperry@spry.com writes:
>   You can use the JPEG-v5 and NETPBM utilities to do this, but I imagine
> there is probably a faster way.  Something like this:

> #!/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. 

home help back first fref pref prev next nref lref last post