X-Google-Language: ENGLISH,ASCII X-Google-Thread: f996b,b0782aa85dc0c3 X-Google-Attributes: gidf996b,public X-Google-ArrivalTime: 2002-02-28 17:39:19 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news-ber1.dfn.de!fu-berlin.de!uni-berlin.de!ascend-tk-p94.dialin.uni-bonn.DE!not-for-mail From: jupp@gmx.de (Josef 'Jupp' Schugt) Newsgroups: alt.ascii-art Subject: Re: Gif to Ascii Converter Date: Fri, 01 Mar 2002 01:39:13 GMT Lines: 39 Message-ID: References: NNTP-Posting-Host: ascend-tk-p94.dialin.uni-bonn.de (131.220.244.94) Mime-Version: 1.0 X-Trace: fu-berlin.de 1014946756 9199153 131.220.244.94 (16 [53633]) X-Newsreader-location: NewsFleX-1.2 (c) 'LIGHTSPEED' off line news reader for the Linux platform NewsFleX homepage: http://www.home.zonnet.nl/panteltje/newsflex/ and ftp download ftp://sunsite.unc.edu/pub/linux/system/news/readers/ User-Agent: NewsFleX/1.2 (gcc version 2.95.2 Linux-2.2.12-10) Xref: archiver1.google.com alt.ascii-art:15193 Hi! partofitall@gmx.de wrote: >I need a gif to ascii converter I suppose the GIF to be b/w (use any image handling program to achieve this) Use giftopnm to convert it to a portable bitmap and then pbmtoascii to convert that format to ASCII. Some excerpt from the pbmtoascii man page will help you when using nont b/w pictures. Note that the tools mentioned are command line- based so they should work under any OS at hand (even Windows Monday Edition). NAME pbmtoascii - convert a portable bitmap into ASCII graphics SYNOPSIS pbmtoascii [-1x2|-2x4] [pbmfile] DESCRIPTION Reads a portable bitmap as input. Produces a somewhat crude ASCII graphic as output. Note that there is no asciitopbm tool - this transforma� tion is one-way. OPTIONS The -1x2 and -2x4 flags give you two alternate ways for the bits to get mapped to characters. With 1x2, the default, each character represents a group of 1 bit across by 2 bits down. With -2x4, each character represents 2 bits across by 4 bits down. With the 1x2 mode you can see the individual bits, so it's useful for previewing small bitmaps on a non-graphics terminal. The 2x4 mode lets you display larger bitmaps on a standard 80-column display, but it obscures bit-level details. 2x4 mode is also good for displaying graymaps - "pnmscale -width 158 | pgmnorm | pgmtopbm -thresh" should give good results. Jupp