webkit2png

webkit2png is a command line tool that creates png screenshots of webpages:

Screenshot of Vimeo.comScreenshot of dopplr.com

With tall or wide pages that would normally require scrolling, it takes screenshots of the whole webpage, not just the area that would be visible in a browser window.

webkit2png makes use of WebKit, the rendering engine used in Safari.

Using webkit2png

  1. Check your computer has Mac OS X 10.2 or later, Safari 1.0 or later, and PyObjC 1.1 or later. If you have Mac OS X 10.5 Leopard or later everything you need is installed already.
  2. Download webkit2png
  3. Open terminal or another shell
  4. Type python /path/to/webkit2png http://www.google.com/
  5. Notice that three png files have appeared in the current directory
  6. Type python /path/to/webkit2png --help to get a list of command line options

Alternatives

If you use a mac, but don't like the command line then you may want to try Paparazzi or Little Snapper.

If you use linux you may be more interested in khtml2png, Matt Biddulph's Mozilla screenshot script or Roland Tapken's QT Webkit script.

Development

The webkit2png source is available from GitHub.