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

Screenshot of bootstrap.twitter.comScreenshot of github.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.


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


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


The source and bug list for webkit2png are on GitHub.