So 1 more who'd like to enter the multi-million dollar business of thumbnail generation! ;-)

In fact I found 3 solutions.

1. You can use html2ps -> then convert the .ps with imagemagick to a .png (works, but all thumbs have a white background - as html2ps is intended for printing)

2. The medium-weight approach of using a browser's render engine and get the output (I used the kwebdesktop library on linux and got mediocre results so far, render errors and no flash, and I think it wastes a LOT of memory! and I can't control the user-agent string easily)

3. The heavy-weight approach of using an external browser and take a capture of the browser's window. Which I didn't try so far as I dislike the idea of the overall design.


Remark 1: To my knowledge there is no all-in-one html-render-and-output-as-image module on cpan.

Remark 2: Which module on Corion?

In reply to Re: Howto Save/Convert HTML into JPEG/PNG with Perl by isync
in thread Howto Save/Convert HTML into JPEG/PNG with Perl by neversaint

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.