visionmedia / screenshot-app Goto Github PK
View Code? Open in Web Editor NEWwebsite screenshot service & app - powered by node.js, express, redis, node-canvas, phantomjs and more
website screenshot service & app - powered by node.js, express, redis, node-canvas, phantomjs and more
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).
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 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
you could use the npm package to make install easier. it basically downloads and unzips cross platform.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.