0

Possible Duplicate:
Screenshot of current page using PHP

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

Community
  • 1
  • 1
schweinsteiger
  • 47
  • 1
  • 10

2 Answers2

1

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 left the building
  • 91,498
  • 46
  • 177
  • 222
0

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
  • 77,584
  • 5
  • 64
  • 78