Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

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

Re: img->ascii

* Eli the Bearded wrote:
> In alt.ascii-art, Troy Piggins  <use...@piggo.com> wrote:
>> $ colorizeascii image-scaled.txt image-scaled.ppm >
>> image-scaled.html
>> colorizeascii: no portable graymap image file found
>
> I don't see how my code could generate that error.
>
>   $ grep die ~/bin/colorizeascii
>       die "$id: unrecognized option: -$arg\n";
>     die "$id: need two input files: textin ppmin\n";
>     die "$id: one or more input file does not exist\n";
>     die "$id: can't open ppm file $ppmin: $!\n";
>     die "$id: can't open text file $textin: $!\n";
>     die "$id: ppm error $ppmin: $$ppm_r{error}\n";
>     die "$id: ppm error $ppmin: not a pixmap\n";
>     die "$id: text error $textin: not enough characters\n";
>   $

Not 'die', 'warn' :

$ grep -n graymap ~/bin/colorizeascii
77:  warn "$id: no portable graymap image file found\n";
188:# A really crude way to read in the graymapping file.

> Image::PBMlib might[*] have problems with PPM files that have
> comments (eg, stuff Gimp produces) but even still grepping
> for 'portable' in the PBMlib.pm file only gives results from
> the POD documentation:
>
>   $ grep portable /usr/lib/perl5/site_perl/5.6.1/Image/PBMlib.pm
>   This is primarily a library for reading portable bitmap (PBM), 
>   portable graymap (PGM), and portable pixmap (PPM) files. These
>   have a very simple format which is the key to be "portable".
>   $
>
>> Does $TERM etc affect it?
>
> Nope. No environment variables harmed^Wused in either colorizeascii
> or Image::PBMlib.

-- 
Troy Piggins
 ,-o
o   ) Ubuntu linux 6.06 http://ubuntu.com  RLU#415538 http://counter.li.org
 `-o  uptime: 13:35:22 up 17 days,6:30,2 users,load average:0.01,0.04,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!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!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> <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: Sat, 21 Oct 2006 13:38:12 +1000
Lines: 46
NNTP-Posting-Host: 203.206.60.205
X-Trace: 1161402002 per-qv1-newsreader-01.iinet.net.au 24675 203.206.60.205
Xref: g2news2.google.com alt.ascii-art:2541
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.

Report this message

Help us keep the archive clean and accurate. Reports are reviewed by a person – nothing is changed automatically.

Help classify this post