Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Howto Save/Convert HTML into JPEG/PNG with Perl

by moklevat (Priest)
on Apr 17, 2007 at 15:07 UTC ( [id://610550]=note: print w/replies, xml ) Need Help??


in reply to Howto Save/Convert HTML into JPEG/PNG with Perl

It sounds like you would like a module that will read the HTML file, render it, and then write out a png or jpeg image of the rendered page. Perhaps someone else knows of such a beast, but my cursory look through CPAN did not turn this up.

Since the structure of the figure is relatively simple, a bunch of tables each containing rectangle-on-a-line with varying offsets, you may be better off parsing the HTML file to extract the sequence information and offset data (the first "td width=" in each table) and rendering rectangle-on-a-lines in PNG using GD::Simple. This would give you more control over the appearance of the image

Update:Ooh, Look at that! Corion found a module that would work after all.

  • Comment on Re: Howto Save/Convert HTML into JPEG/PNG with Perl

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://610550]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2024-04-23 10:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found