X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f996b,b0782aa85dc0c3 X-Google-Attributes: gidf996b,public X-Google-ArrivalTime: 2002-03-12 01:21:07 PST Newsgroups: alt.ascii-art From: Harry Mason Subject: Re: Gif to Ascii Converter References: Message-ID: User-Agent: slrn/0.9.7.2 (Linux) NNTP-Posting-Host: random.ecs.soton.ac.uk Date: 12 Mar 2002 09:20:25 GMT X-Trace: 12 Mar 2002 09:20:25 GMT, random.ecs.soton.ac.uk Lines: 24 Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!212.74.64.35!colt.net!newspeer.clara.net!news.clara.net!server3.netnews.ja.net!news-spool.soton.ac.uk!news.ecs.soton.ac.uk!random.ecs.soton.ac.uk Xref: archiver1.google.com alt.ascii-art:15530 On Tue, 12 Mar 2002 07:15:00 GMT, Faux_Pseudo wrote: > --(Once apon a time, in alt.ascii-art,)-- > --(Harry Mason said it like only they can.)-- > > I think giftopnm generates either ppm or pgm files, depending on the > > palette in the input file. > > ?? depending on the palette? That does not sound like any command > line conversion app I have ever used. Sounds more like windows make > in choices you never wanted it to make. I think a 2-colour GIF will generate a pbm, a 256-gray GIF will create a pgm, and anything else will generate a ppm. If it generated a specific format it would be called giftoppm (or whatever). pnm is not a real format - it means either ppm, pgm or pbm. ppmtopgm(1) says 'any ppm program can read pgm (and pbm) files automatically'. Even if giftopnm has generated a pbm or pgm, you can still pipe it through ppmtopgm | pgmtopbm | pbmtoascii successfully. I've tested this with pbmmake and pgmcrater and it works. -- Harry Mason ("hjm200.ecs@soton@ac@uk" =~ tr/@./.@/)