On Thu, 27 Sep 2007 21:19:17 +0200, Krustov <me@privacy.netwrote:
<comp.lang.php>
<Erwin Moller>
<Thu, 27 Sep 2007 16:32:04 +0200>
<46*********************@news.xs4all.nl>
>That is not a PHP script, but a hell of a job.
You need software that renders HTML/CCS/javascript/etc and then make a
image of it.
I doubt you'll find a php script alone that accomplishes that.
- grab the html code
- grab the images
- create a blank 1024x768 image using the background colour (if defined)
- create the tables and/or divs
- paste the grabbed images onto it
Pfff, parsing css would be quite a horrifying task. Perfectly doable
offcourse, just not my idea of fun
- create a thumbnail of the large 1024x768 image
As its going to a thumbnail it doesnt need to be pixel perfect .
If i wasnt in the middle of writing a guestbook at the moment - i'd have
a bash at it myself .
To avoid all that writing yourself: there are descent HTML2PS packages,
and descent PS2PNG/PS2JPEG convertors... Just don't expect any magic to
happen. Due to a lot of flash/javascript/other plugin usage, the only
thing reliable is to take an actual screenshot in a descent browser, so it
would probably require a server with X...
--
Rik Wasmus