[PLUG] Parsing images simple images

Matthew Gates a.k.a. Mouse matthewg42 at gmail.com
Sat Aug 13 09:56:00 UTC 2011


On 13 August 2011 10:38, Russell Senior <russell at personaltelco.net> wrote:
>>>>>> "Sean" == Sean Ellefson <scellef at gmail.com> writes:
>
> Sean> Hey guys, I had this idea for a silly little script that would
> Sean> parse through a simple png or something similar and be able to
> Sean> read the color for each pixel.  Basically, what I want to do is
> Sean> translate each pixel of the image into an ansi color code and a
> Sean> couple of spaces for the purpose of printing it out to a
> Sean> terminal.  Are there any utilities or libraries you all know
> Sean> about that might be able to do something like this?
>
> convert (from imagemagick) can do something like that.  I've forgotten
> the actual incantation, but I've done it before.  The manpage or
> google should help.
>

aview, which uses aalib might be what you're looking for.  You need to
convert images to pnm first though.



More information about the PLUG mailing list