Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 node_modules
Octocat-spinner-32 .buildpack
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE.txt
Octocat-spinner-32 Procfile
Octocat-spinner-32 README.md
Octocat-spinner-32 package.json
Octocat-spinner-32 server.js
README.md

node-webshot-server

Node based server for taking webshots using node-webshot. Includes heroku config.

Getting started

$ npm install
$ node server.js
open your browser at http://localhost:5000?url=google.com

Heroku

$ heroku create [name]
$ heroku config:add LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/lib:/app/vendor/phantomjs/lib
$ heroku config:add PATH=/usr/local/bin:/usr/bin:/bin:/app/vendor/phantomjs/bin
$ git push heroku master
open your browser at http://appname.herokuapps.com?url=google.com

Service options

Resizing

http://localhost:5000?url=google.com&width=500
http://localhost:5000?url=google.com&height=300
http://localhost:5000?url=google.com&width=200&height=400
Something went wrong with that request. Please try again.