webkit2png

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

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.

Installing

To install using Homebrew:

brew install webkit2png

If you don't use Homebrew then download the webkit2png script to somewhere in your path (I suggest /usr/local/bin ). Then run:

chmod a+x /path/to/webkit2png

Using

To screenshot Google's front page:

webkit2png http://www.google.com/

Notice that three PNG files have appeared in the current directory. For more documentation run:

webkit2png --help

Development

The source and bug list for webkit2png are on GitHub.