You can try webkit2png :
Tested in Ubuntu :
$ sudo apt-get install python-qt4 libqt4-webkit python-pip xvfb $ wget https://raw.github.com/millisami/python-webkit2png/master/webkit2png.py $ chmod +x webkit2png.py $ sudo xvfb-run --server-args="-screen 0, 1024x768x24" ./webkit2png.py -o google.png http://www.google.com
This will create an image called google.png
UPDATE
Another easy way is phantomjs :
$ phantom rasterize.js http:
Download and unzip the binary archive. rasterize.js is located in the example directory.
source share