ascii" posted to alt.ascii-art on 18 Oct 2006."> Re: img->ascii - alt.ascii-art - ASCII Art Archive

Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet message from alt.ascii-art, 18 Oct 2006.
Re: img->ascii

Re: img->ascii

* Eli the Bearded wrote:
> In alt.ascii-art, Troy Piggins  <_usenet-0610@piggo.com_> wrote:
>> * 3Dimka wrote:
>> > Has anyone tried Characterizer?
>> > it automatically converts images to text:
>> > http://aolej.com/free.html#Chara
>> Do you know of an equivalent for linux?
>
> Get the PBM Tools (or Netpbm) package and use pbmtoascii (comes
> with the package) or hunt the Google archives for my pgmtoascii
> script.

Got it.

> Actually, now I have a colorizer that I use with it, too. Example
> usage:
>
> djpeg IMAGE.jpg > IMAGE.ppm
> pnmscale -yscale 0.25 -xscale 0.5 IMAGE.ppm > IMAGE-scaled.ppm
> ppmtopgm IMAGE-scaled.ppm > IMAGE-scaled.pgm

Got this far...

> # sometimes a pnminvert of the pgm file will help a lot
> pgmtoascii IMAGE-scaled.pgm > IMAGE-scaled.txt

Found it.

> colorizeascii IMAGE-scaled.txt IMAGE-scaled.ppm > IMAGE-scaled.html

This line I got an error:

$ colorizeascii image.txt image-scaled.ppm > image.html
colorizeascii: text error image.txt: not enough characters

So close yet so far...

> Look for the colorizer at the end of this post.
<snip>

-- 
Troy Piggins
 ,-o
o   ) Ubuntu linux 6.06 http://ubuntu.com  RLU#415538 http://counter.li.org
 `-o  uptime: 16:27:50 up 14 days,9:22,2 users,load average:0.19,0.06,0.01

Original message headers
X-Google-Thread: f996b,d2eee4c8b9d7cb21
X-Google-Attributes: gidf996b,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: g2news2.google.com!news2.google.com!news3.google.com!newshub.sdsu.edu!newsfeed.news2me.com!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!nntp4.phx1!newsfeed.iinet.net.au!newsfeed.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsreader-01.iinet.net.au!not-for-mail
Newsgroups: alt.ascii-art
From: Troy Piggins <use...@piggo.com>
Subject: Re: img->ascii
References: <4529c70f$0$19626$882...@free.teranews.com> <200...@usenet.piggo.com> <eli$061...@qz.little-neck.ny.us>
Reply-To: use...@piggo.com
Message-ID: <200...@usenet.piggo.com>
User-Agent: slrn/0.9.8.1pl1/rt (Linux)
Date: Wed, 18 Oct 2006 16:29:26 +1000
Lines: 45
NNTP-Posting-Host: 203.206.60.205
X-Trace: 1161153002 per-qv1-newsreader-01.iinet.net.au 24682 203.206.60.205
Xref: g2news2.google.com alt.ascii-art:2521
About this message. This message was posted publicly to the newsgroup alt.ascii-art in 2006 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.