ascii" posted to alt.ascii-art on 20 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, 20 Oct 2006.
Re: img->ascii

Re: img->ascii

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";
  $

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.

Elijah
------
[*] I need to release an update to that module.

Original message headers
X-Google-Thread: f996b,d2eee4c8b9d7cb21
X-Google-Attributes: gidf996b,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!transit3.readnews.com!news-out.readnews.com!panix!qz!not-for-mail
From: Eli the Bearded <*@eli.users.panix.com>
Newsgroups: alt.ascii-art
Subject: Re: img->ascii
Date: Fri, 20 Oct 2006 23:05:13 +0000 (UTC)
Organization: Some absurd concept
Lines: 37
Message-ID: <eli$061...@qz.little-neck.ny.us>
References: <4529c70f$0$19626$882...@free.teranews.com> <200...@usenet.piggo.com> <eli$061...@qz.little-neck.ny.us> <200...@usenet.piggo.com>
NNTP-Posting-Host: panix5.panix.com
X-Trace: reader2.panix.com 1161385513 13979 166.84.1.5 (20 Oct 2006 23:05:13 GMT)
X-Complaints-To: abu...@panix.com
NNTP-Posting-Date: Fri, 20 Oct 2006 23:05:13 +0000 (UTC)
X-Liz: It's actually happened, the entire Internet is a massive game of Redcode
X-Motto: "Erosion of rights never seems to reverse itself." -- kenny@panix
X-US-Congress: Moronic Fucks.
X-Attribution: EtB
Encrypted: double rot-13
User-Agent: Vectrex rn 2.1 (beta)
X-Comments: "(Welcome to the desert of the real.)" -- eck@panix
	    "... terrorism is open-source war ..." -- srini@unamerican
Xref: g2news2.google.com alt.ascii-art:2540
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.