Re: Gif to Ascii Converter
From Josef 'Jupp' Schugt <jup...@gmx.de>
· alt.ascii-art
· 1 Mar 2002 01:39 · View full thread
· report
Hi!
par...@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
Original message headers
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: jup...@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: <a5mm43$8onhh$1...@ID-53633.news.dfncis.de> References: <a5m5t4$418$01$1...@news.t-online.com> 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
Related ASCII art in the Gallery
Explore these categories from our collection of 11,000+ artworks:
, _ , ( o o ) /'` ' `'\ |'''''''| |\\'''//| """
,~~--~~-. + | |\ || |~ |`,/-\ *\_) \_) `-'
__
\ \ _ _
\**\ ___\/ \
X*#####*+^^\_\
o/\ \
\__\ .------------. |\\//\\//\\//| |//\\//\\//\\| |\\//\\//\\//| |//\\//\\//\\| '------------'
_______ /` _____ `\;, /__(^===^)__\';, / ::: \ ,; | ::: | ,;' '._______.'`jgs
_ _ (o)(o)--. \../ ( )hjw m\/m--m'`--.
Make your own ASCII art
Turn images, text or 3D into ASCII, or draw your own – right in your browser.
About this message.
This message was posted publicly to the newsgroup
alt.ascii-art
in 2002 and is mirrored here unchanged as part of the Historic Archives – only email addresses are masked.
The artwork and text belong to their original authors: if you copy a piece, keep the artist's initials or signature intact and credit them where you can.
Are you the author? Contact us to get your posts attributed, connected to your artist profile, or removed.
Report this message
Help us keep the archive clean and accurate. Reports are reviewed by a person – nothing is changed automatically.