visionmedia / screenshot-app

website screenshot service & app - powered by node.js, express, redis, node-canvas, phantomjs and more
852 stars 107 forks source link

Asynchronous screenshot #2

Open fzaninotto opened 12 years ago

fzaninotto commented 12 years ago

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).