GithubHelp home page GithubHelp logo

visionmedia / screenshot-app Goto Github PK

View Code? Open in Web Editor NEW
852.0 852.0 107.0 303 KB

website screenshot service & app - powered by node.js, express, redis, node-canvas, phantomjs and more

JavaScript 95.76% CSS 4.24%

screenshot-app's People

Contributors

alfirin avatar denisjacquemin avatar ericabiz avatar tj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

screenshot-app's Issues

Asynchronous screenshot

Some screenshots take long to make, and the connection to the screenshot-app service may be lost in the meantime. An asynchronous route would be a good solution:

curl http://www.google.com&width=600&callback=www.mysite.com/screenshot

The end result would be a POST request to http://www.mysite.com/screenshot, with the image in the body, as well as the original request parameters (url, width, height).

Does not start on OSX

orsamac:screenshot-app orsa$ node app

module.js:356
Module._extensions[extension](this, filename);
^
Error: dlopen(/Users/orsa/home/projects/zero/screenshot-app/node_modules/canvas/build/Release/canvas.node, 1): Symbol not found: _FT_Done_Face
Referenced from: /Users/orsa/home/projects/zero/screenshot-app/node_modules/canvas/build/Release/canvas.node
Expected in: dynamic lookup

at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/Users/orsa/home/projects/zero/screenshot-app/node_modules/canvas/lib/bindings.js:2:18)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)

orsamac:screenshot-app orsa$

npm install fails.

npm ERR! npm owner ls canvas
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Linux 3.2.0-23-generic
npm ERR! command "node" "/usr/bin/npm" "install" "-d"
npm ERR! cwd /home/me/Development/screenshot-app
npm ERR! node -v v0.6.12
npm ERR! npm -v 1.1.4
npm ERR! code ELIFECYCLE
npm ERR! message [email protected] preinstall: node-waf configure build
npm ERR! message sh "-c" "node-waf configure build" failed with 1
npm ERR! errno {}
npm info shasum 1ce1c77b9d3b8b484db5725a5c3a6d2cecaaa777
npm info shasum /home/me/.npm/mkdirp/0.0.7/package.tgz
npm info preinstall [email protected]
npm info build /home/me/Development/screenshot-app/node_modules/jade/node_modules/commander
npm info linkStuff [email protected]
npm info install [email protected]
npm info postinstall [email protected]
npm info preinstall [email protected]
npm info build /home/me/Development/screenshot-app/node_modules/jade/node_modules/mkdirp
npm info linkStuff [email protected]
npm info install [email protected]
npm info postinstall [email protected]
npm info build /home/me/Development/screenshot-app/node_modules/jade
npm info linkStuff [email protected]
npm info install [email protected]
npm info postinstall [email protected]
npm info shasum e0fd9d564bbe20f6a7396ca87e5dfd92f302b2d0
npm info shasum /home/me/.npm/hiredis/0.1.14/package.tgz
npm info into /home/me/Development/screenshot-app/node_modules/redis [email protected]
npm info installOne [email protected]
npm info unbuild /home/me/Development/screenshot-app/node_modules/redis/node_modules/hiredis
npm info shasum d813568b811efbd7fb9a7d882bcbb63f38beab1f
npm info shasum /home/me/.npm/cssom/0.2.0/package.tgz
npm info into /home/me/Development/screenshot-app/node_modules/stylus [email protected]
npm info into /home/me/Development/screenshot-app/node_modules/stylus [email protected]
npm info into /home/me/Development/screenshot-app/node_modules/stylus [email protected]
npm info installOne [email protected]
npm info installOne [email protected]
npm info installOne [email protected]
npm info unbuild /home/me/Development/screenshot-app/node_modules/stylus/node_modules/growl
npm info unbuild /home/me/Development/screenshot-app/node_modules/stylus/node_modules/mkdirp
npm info unbuild /home/me/Development/screenshot-app/node_modules/stylus/node_modules/cssom
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/me/Development/screenshot-app/npm-debug.log
npm not ok

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.