What I mean is to get the rendered HTML and make a Jpeg/GIF out of it. The idea is to make a digital snapshot of a page.
Asked
Active
Viewed 290 times
2
-
Different browsers render the same HTML differently... – BlueRaja - Danny Pflughoeft Apr 27 '10 at 20:15
-
Take a look at: http://stackoverflow.com/questions/733219/733326#733326 wkhtml, pstohtml create both jpg or pdf from an html source (with css support) – Strae Apr 27 '10 at 22:41
3 Answers
1
It will probably require far more effort than it is worth. Why not look at services that already provide this for you? (Like Alexa)

Mitch Dempsey
- 38,725
- 6
- 68
- 74
1
You cannot do that in PHP only ; but, from PHP, you can start a browser, indicating it that it has to load the URL you want, and, then, get a "screenshot" from that browser.
I've heard a couple of time of Firefox being able to do that -- should be a couple of questions+answers here on SO that should help you get started ; here are a couple of those :

Community
- 1
- 1

Pascal MARTIN
- 395,085
- 80
- 655
- 663
1
How about HTML to a PDF? Many libraries available. And PDF's can in turn converted to Image?
That can be done right? Or am I way off?

Strong Like Bull
- 11,155
- 36
- 98
- 169