Skip to content

okfn/webshot

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 19 commits ahead of opsb:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

See it and use it live at http://webshot.okfnlabs.org/

Originally forked from opsb/node-webshot-server.

Getting started

$ npm install
$ node app.js
open your browser at http://localhost:5000

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

Service options

Resizing

http://localhost:5000/api/generate?url=google.com&width=500
http://localhost:5000/api/generate?url=google.com&height=300
http://localhost:5000/api/generate?url=google.com&width=200&height=400
http://localhost:5000/api/generate?url=google.com&width=200&height=400&full=true

About

A web service to take screenshots

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%