Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: Website screenshot

by emazep (Priest)
on Jan 06, 2007 at 01:53 UTC ( #593256=note: print w/replies, xml ) Need Help??

in reply to Website screenshot

Alien, taking a screenshot of a given HTML page, implies that the mentioned HTML page has been rendered, which is a quite complex task, handled with many difficulties even by modern web browsers.

Your best option is thus probably using a browser (on the server side by your Perl script) to fetch the given URL and to render the corresponding page, and then using some program to take the actual screenshot (such as scrot), as already suggested also by others.
It's likely that the PHP script you saw used some external HTML rendering engine/widget under the hood.


Replies are listed 'Best First'.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://593256]
[ambrus]: I think the minimal implementation here is just a timer and io function, plus pushing to the @REGISTRY.
[Corion]: ambrus: Yeah, at least that's what I think I'll start with. A timer and potentially the dummy IO function that never is ready
[ambrus]: That only lets you invoke the main loop from Prima->run;, not from AnyEvent->condvar- >recv; but that shouldn't matter

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2016-12-08 12:31 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (141 votes). Check out past polls.