Skip to content

Instantly share code, notes, and snippets.

@marktopper
Created February 17, 2015 12:27
Show Gist options
  • Save marktopper/69a735d8670e9b4f38fa to your computer and use it in GitHub Desktop.
Save marktopper/69a735d8670e9b4f38fa to your computer and use it in GitHub Desktop.
Install wkhtmltoimage on ubuntu
Install
$ cd /tmp
$ wget http://wkhtmltopdf.googlecode.com/files/wkhtmltoimage-0.11.0_rc1-static-i386.tar.bz2
$ tar xvjf ./wkhtmltoimage-0.11.0_rc1-static-i386.tar.bz2
$ chmod +x ./wkhtmltoimage-i386
$ mv wkhtmltoimage-i386 ./usr/bin/wkhtmltoimage
$ rm wkhtmltoimage-0.11.0_rc1-static-i386.tar.bz2
Usage
$ sudo /usr/bin/xvfb-run -a -s "-screen 0 640x480x16" /usr/bin/wkhtmltoimage http://google.com/ google.jpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment