Converter from g3 to gif,pcx or whatelse
Mike Schmitz (mschmitz@coinet.com)
Fri, 7 Nov 1997 08:15:54 -0800
On Fri, Nov 07, 1997 at 02:48:30PM +0100, Luigi Rizzo wrote:
> > On Wed, 5 Nov 1997, gert@greenie.muc.de (Gert Doering) wrote:
> >
> > > Ben Stuyts wrote:
> > > > It would be nice if there were a true pbmtogif program that would run the
> > > > conversion line by line.
> > >
> > > Write one :)
> >
> > I was just going through g32pbm.c and ppmtogif.c. It shouldn't be too hard to
> > put the relevant bits in g32pbm. Shall I have a go at it? g32pbm would get a
> > bit bloated though.
>
> I have spent a couple of hours on that last night -- i ended up
> rewriting almost completely g3tops, and right now it produces:
> - postscript, multiple pages;
> - plain pbm
> - scaled pgm (/2 in both directions) with 4 grey levels generated
> according to the table I posted the other day; it produces a
> reasonable output although in some cases it tends to kill small
> white intervals -- maybe I have to modify the translation table.
>
> I am working on the ppmtogif sources right now -- the main problem is
> that ppmtogif scans the whole pixmap to determine the color table,
> and keeps the pixmap in memory to produce interlaced images. It has to
> be modified in order to use data on the fly. The hardest (relatively)
> part at this point is modifying g3tops in such a way that it can
> produce pixels on demand.
>
> In a day or two I will make the code I have available.
>
> Cheers
> Luigi
Wouldn't it be better to use a free format such as jpeg?
--
Mike Schmitz mschmitz@bend-or.com http://www.bend-or.com/~mschmitz
Don't blame me - I voted libertarian! http://www.lp.org/
Use Debian Linux - the free Gnu/Linux http://www.debian.org/
-----------
"If encryption is outlawed, only outlaws will have encryption"