When I was creating the first version of img2gif I used 'RAW' file format, exported from Paint Shop Pro, which looks like this:


255 255 255
128 128 128
64 64 64
0 0 0

Which could be a 1x4, 4x1 or 2x2 image... it doesn't save the dimensions. That'd save messing about with parsing JPGs etc... but's useless on a website. Or you could try to use GD, which I found less useful than Image::Magick... only use PNGs, I think...

Maybe you could try to pull the relevant parts of Image::Magick inline into your program? (Is this generally possible?)

Just my .02 pence worth... ;-)

Dave

Eight years involved with the nuclear industry have taught me that when nothing can possible go wrong and every avenue has been covered, then is the time to buy a house on the next continent. Terry Pratchett


In reply to Re: Colored ASCII Art from Pictures by dmckee
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.