You cannot do this in pure PHP, you will always need external rendering to get a good result.
Itโs best to use an external service, such as the .org browser APIs , so you wonโt put extra load on your server.
If you have the resources to write, you can use another method (still running on your server, not PHP) called wkhtmltoimage, as in mario answer . Just remember that this is not recommended (infact, perhaps not even possible) on shared hosting.
Rudi Visser May 03 '11 at 17:27 2011-05-03 17:27
source share