Convert web page to image [closed]

What are some utilities to obtain an image of a webpage?

Basically equivalent to taking a "screenshot" of the page after opening it.


Solution 1:

Real answers:

http://cutycapt.sourceforge.net/

http://iecapt.sourceforge.net/

http://www.websitescreenshots.com/

http://www.princexml.com/

http://khtml2png.sourceforge.net/

http://linkpeek.com/

https://htmlcsstoimage.com/ (Uses Google Chrome)

https://gofullpage.com/ - Full Page Screen Capture (Chrome extension) - see this superuser answer for more info

(Don't know of one to use Mozilla's renderer, though.)

Solution 2:

Awesome : http://wkhtmltopdf.org/

wkhtmltopdf and wkhtmltoimage are open source (LGPLv3) command line tools to render HTML into PDF and various image formats using the QT Webkit rendering engine.

Solution 3:

Somebody wrote a blog post about this a few years back. There are examples in several languages, using both WebKit and Mozilla. There's also an example in Ruby.

It boils down to this: decide how wide you want your window to be; put a browser component in the window; wait until the page loads; capture the pixel buffer contents.