From 9d8d779ef1b6a0a590c92a9a4eca3f470674fab6 Mon Sep 17 00:00:00 2001 From: Christian Haschek Date: Wed, 30 Sep 2015 00:47:36 +0200 Subject: [PATCH] added phantomjs stuff --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index e489372..771bc70 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,15 @@ Live demo on https://http2pic.haschek.at/ ## Install +### With WKHTMLToImage - Install [wkhtmltox](http://wkhtmltopdf.org/downloads.html) on your server - Make /usr/sbin/wkhtmltoimage executable for the user that runs the webserver. For Apache it's the ```www-data``` user. Or use sudo + +### With PhantomJS + +- Install PhantomJS. eg via ```npm install -g phantomjs``` +- Make /usr/bin/phantomjs executable for the user that runs the webserver. For Apache it's the ```www-data``` user. Or use sudo + - Make sure the server has the "timeout" command. For debian this is available via ```apt-get install coreutils``` - Download [this repo](https://github.com/chrisiaut/http2pic/archive/master.zip) and extract it somewhere on your webserver