Html to image in javascript or python

By : Vítor
Source: Stackoverflow.com
Question!

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


Answers

I believe this is what you are looking for:

http://code.google.com/p/wkhtmltopdf/

By : tambler


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



There is a service called Webthumb at http://webthumb.bluga.net/home 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