Html to image in javascript or python

By : Vítor

Just a dumb question... Is there any way you can create an image, say png, with the content of an html page, with a simple click of a button?

Thanks to anyone who cares to answers.

Thanks for you answers. But what I wanted was some code in javascript or python that would allow me to create an image from a table or div.

By : Vítor


I believe this is what you are looking for:

By : tambler

If you're not locked to having it as a PNG, you could turn it into a PDF with Pisa/Report Lab ( It handles tables pretty well.

There is a service called Webthumb at that I have used for something similar.

It has a fairly easy REST interface for you to work upon.

By : Rajat

This video can help you solving your question :)
By: admin