Here are a few threads that cover similar topics.
Pixel by Pixel reading of images
Image to table converter (i did this one)
one of merlyns webtechniques columns

I like using the GD module, and from what I hear it's much faster than Image::Magick.

What I might do to implement this:
read up the image file
GD.pm
create a matrix of the pixels and color intensities
Build a sub that returns the intensity based on the rgb.
define some characters that would work as shades of gray intesities
trial and error, perhaps analysing a single font of characters assigning a value based on positive coverage in a fixed area (fixed width fonts only)
this would be worked out ahead of time and set into a file or array for the generation of the final product
match neighbour colors inside a certain range as one color re-formatting the matrix
Build a sub to do that, run the foreach loops for x and y of the image like thus (x = 2; x < size; x = x + 3) if a 3x3 sample size was desired
another thing might be to look into the available modules and see if they support resizing, then do that first (or you could always require that the input file be sized already)
print out the html file based on the matrix.
Lots 'o print statements. I'd probably be printing to standard out during the x and y iterations of the pixels, converting each pixel and printing one line at a time.

Hope it helps.


In reply to Re: Colored ASCII Art from Pictures by bastard
in thread Colored ASCII Art from Pictures by Chady

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.