tags:

views:

64

answers:

2

Possible Duplicate:
Screenshot of current page using PHP

How to convert HTML to image with PHP , have idea!!!

A: 

In order to get an image of a web page, you need software that can render a web page (that is, lay out elements, apply styles, and so on). Such software is typically called a "browser".

It's possible to automate a browser from PHP, using COM (like in sAc's answer) on windows, for example.

gnud
A: 

If you have Python, PyQt4 and Webkit installed on your server, you can use Webkit2PNG to do this: it downloads the page, fires up the Webkit rendering engine, and takes a snapshot.

Note that this could be resource-intensive; also, rendering can differ in various browsers (and in IE).

Piskvor