Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet thread from alt.ascii-art, started 28 Feb 2002.
 _   _                     _        _             _     _           
| | | |___  ___ _ __   ___| |_     / \   _ __ ___| |__ (_)_   _____ 
| | | / __|/ _ \ '_ \ / _ \ __|   / _ \ | '__/ __| '_ \| \ \ / / _ \
| |_| \__ \  __/ | | |  __/ |_   / ___ \| | | (__| | | | |\ V /  __/
 \___/|___/\___|_| |_|\___|\__| /_/   \_\_|  \___|_| |_|_| \_/ \___|
Gif to Ascii Converter

Gif to Ascii Converter

alt.ascii-art · 14 messages · 28 Feb 2002 - 18 Mar 2002
Hi!
I need a gif to ascii converter...does anybody know one?
no matter if online or a programm...

thank you!

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

the kat <nos...@127.0.0.1> ASCII art 1 Mar 2002 04:43 · permalink
In article <a5m5t4$418$01$1...@news.t-online.com>, (�`�.��flow��.���) wrote:
> Hi!
> I need a gif to ascii converter...does anybody know one?
> no matter if online or a programm...

http://www.jave.de

obascii:             
                           _____________   
                     _,-'''             '''-._
               _   ,'    wonders if anyone    `.
       o O () (_) (   lurks or googles before   )
 A___A             `._  asking stuff anymore  ,'
( @ @ )               `-...______________,,,-'
 \_^_/ 
 
-- 
|  A___A                 _/_ /_ _  /  _ _/_  _   ,_  _
| ( @ @ ) (/(/ (/(/ (/(/.(  / /(-'/< (_\( . (_) /  `(_)
|  \_^_/      katATthekatDOTorg                    ._/

ann...@oal.com ASCII art 1 Mar 2002 07:17 · permalink
On 2002-03-01 nospam@127.0.0.1 said:

   >                            _____________
   >                      _,-'''             '''-._
   >                _   ,'    wonders if anyone    `.
   >        o O () (_) (   lurks or googles before   )
   >  A___A             `._  asking stuff anymore  ,'
   > ( @ @ )               `-...______________,,,-'
   >  \_^_/

--
Annie Ascii -- budding 14-year-old ASCII artist
                             .,,,.
 ####    ####               (~~~)))   Not much, Kat. I think you
##  ##  ##  ##              _ _ ((()   / learned that already,
######  ######              (^  ))))     there at the university.
##  ##  ##  ##               ~_((((()  \
##  ##  ##  ##               /  )))))) By the way, do you think I
                                       should change my hairstyle?

David Palmer <dav...> 1 Mar 2002 10:55 · permalink
You might try GifSCII.EXE, it's only 60K and takes less than 1 second to download.

http://members.aol.com/tony5870

It's a DOS programme that requires you to type the path to the gif to be converted.
I recommend first resizing the gif less than 80 pixels wide and keep the length in
proportion and then resize the height only to about half. It will create a *.asc
file with the same name as the *.gif designed to be viewed in dos (black backgroud)
so if you want it to look right in something link Notepad remember to use the "invert"
command before you save it.

"(�`�.��flow��.���)" <par...@gmx.de> wrote in message
news:a5m5t4$418$01$1...@news.t-online.com...
> Hi!
> I need a gif to ascii converter...does anybody know one?
> no matter if online or a programm...
>
> thank you!
>
>

http://www.degraeve.com/gif2txt.shtml



"(�`�.��flow��.���)" <par...@gmx.de> wrote in message
news:a5m5t4$418$01$1...@news.t-online.com...
> Hi!
> I need a gif to ascii converter...does anybody know one?
> no matter if online or a programm...
>
> thank you!
>
>

--(Once apon a time, in alt.ascii-art,)--
		--(Josef 'Jupp' Schugt said it like only they can.)--
> 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).
> 

The problem with apps like pbmtoascii is that I always seem to be
lacking a converstion program somehere in teh pipe.
How do I get to the pbm file?  I have not found a jpegtopbm or
giftopbm app.  I can get a gif to a pnm but then I can only get a file
formates I have never even heard of:
ddif  fits  ps    rast  sgi   sir xwd

Well I have heard of ps but some how I think thats not going to meet
my needs even with pstoascii.  Thats just way to much abstraction.

In short I am looking for a comand line group of apps like those that
come with ImageMagic.  But I want a better set of the strarting
converters like those for gif or jpgs.

Any ideas?



-- 
 --(tty...@faux.local|04:45|/home/faux)-- cat .sig
It's a damn poor mind that can only think of one way to spell a word.
        - Andrew Jackson

On Mon, 11 Mar 2002 09:03:58 GMT, Faux_Pseudo <Fau...@yahoo.comERCIAL>
wrote:
>  The problem with apps like pbmtoascii is that I always seem to be
>  lacking a converstion program somehere in teh pipe.
>  How do I get to the pbm file?  I have not found a jpegtopbm or
>  giftopbm app.  I can get a gif to a pnm...

I think giftopnm generates either ppm or pgm files, depending on the palette in
the input file. You can then pipe the result through ppmtopgm, then pgmtopbm
and pbmtoascii.

-- 
Harry Mason ("hjm200.ecs@soton@ac@uk" =~ tr/@./.@/)

use Image Alchemy, it converts over 90 image formats
http://www.handmadesw.com/Products/Image_Alchemy.htm

- Sonic




"Faux_Pseudo" <Fau...@yahoo.comERCIAL> escribi� en el mensaje
news:slrna8osnt.nm.Faux_Pseudo@fugozi.cx1209071-a...
> --(Once apon a time, in alt.ascii-art,)--
> --(Josef 'Jupp' Schugt said it like only they can.)--
> > 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).
> >
>
> The problem with apps like pbmtoascii is that I always seem to be
> lacking a converstion program somehere in teh pipe.
> How do I get to the pbm file?  I have not found a jpegtopbm or
> giftopbm app.  I can get a gif to a pnm but then I can only get a file
> formates I have never even heard of:
> ddif  fits  ps    rast  sgi   sir xwd
>
> Well I have heard of ps but some how I think thats not going to meet
> my needs even with pstoascii.  Thats just way to much abstraction.
>
> In short I am looking for a comand line group of apps like those that
> come with ImageMagic.  But I want a better set of the strarting
> converters like those for gif or jpgs.
>
> Any ideas?
>
>
>
> --
>  --(tty...@faux.local|04:45|/home/faux)-- cat .sig
> It's a damn poor mind that can only think of one way to spell a word.
>         - Andrew Jackson

--(Once apon a time, in alt.ascii-art,)--
		--(Harry Mason said it like only they can.)--
> On Mon, 11 Mar 2002 09:03:58 GMT, Faux_Pseudo <Fau...@yahoo.comERCIAL>
> wrote:
>>  The problem with apps like pbmtoascii is that I always seem to be
>>  lacking a converstion program somehere in teh pipe.
>>  How do I get to the pbm file?  I have not found a jpegtopbm or
>>  giftopbm app.  I can get a gif to a pnm...
> 
> 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.

Have you seen this documented somewhere?  The giftopnm man page has
nothing about that at all.



-- 
 --(tty...@faux.local|04:45|/home/faux)-- cat .sig
It's a damn poor mind that can only think of one way to spell a word.
        - Andrew Jackson

On Tue, 12 Mar 2002 07:15:00 GMT, Faux_Pseudo <Fau...@yahoo.comERCIAL>
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/@./.@/)

> #!/bin/bash
> # giftoascii.sh
> if [[ $# < 2 ]] ; then
>     echo two args
>     echo filename and size percentage modifer
>     exit 1
> fi
> TMPFILE="$(echo $1 | sed 's/\.gif$//g' | awk '{print $1}')"
> convert -geometry $2% $1 $TMPFILE.pbm && pbmtoascii $TMPFILE.pbm
> rm -f $TMPFILE.pbm
>
> #!/bin/bash
> # jpgtoascii.sh
> if [[ $# < 2 ]] ; then
>     echo two args
>     echo filename and size percentage modifer
>     exit 1
> fi
> TMPFILE="$(echo $1 | sed 's/\.jpg$//g' | awk '{print $1}')"
> convert -geometry $2% $1 $TMPFILE.pbm && pbmtoascii $TMPFILE.pbm
> rm -f $TMPFILE.pbm

Simply use JavE.

Joey

--(Once apon a time, in alt.ascii-art,)--
		--(Johannes 'Joey' R�ssel said it like only they can.)--
>> #!/bin/bash
<snip old version of code>
>>
>> #!/bin/bash
<snip old version of code>
> 
> Simply use JavE.
> 

But that would require me to install Java.  And that commrade is not
going to happen any time soon.  Nothing agenst Java, however I just
have had no reason to install it and don't see the use in installing
several meg of libraries for one program that can be compensated for
with other programs on my harddrive.


-- 
 --(tty...@faux.local|04:45|/home/faux)-- cat .sig .uin
It's a damn poor mind that can only think of one way to spell a word.
        - Andrew Jackson
UIN=66618055

b <bes...@last.com> 18 Mar 2002 12:36 · permalink
On Mon, 18 Mar 2002 10:22:38 GMT, Faux_Pseudo <Fau...@yahoo.comERCIAL>
wrote in message <slrna9bfvb.9r.Faux_Pseudo@fugozi.cx1209071-a>:
>--(Once apon a time, in alt.ascii-art,)--
>		--(Johannes 'Joey' R�ssel said it like only they can.)--
>>> #!/bin/bash
><snip old version of code>
>>> #!/bin/bash
><snip old version of code>
>> Simply use JavE.
>But that would require me to install Java.  And that commrade is not
>going to happen any time soon.  Nothing agenst Java, however I just
>have had no reason to install it and don't see the use in installing
>several meg of libraries for one program that can be compensated for
>with other programs on my harddrive.

I order you to install Java now!

-- 
bes...@last.com

About this thread. These messages were posted publicly to the newsgroup alt.ascii-art in 2002 and are 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 one of the authors? Contact us to get your posts attributed, connected to your artist profile, or removed.