capture
capture copied to clipboard
Lambda function to capture a URL as PNG, JPG, or GIF using PhantomJS
Hi tj, Sorry for dig this out, I got `Error: spawnSync ./phantomjs ENOENT` error when I try to run capture locally via `node script.js`, (script.js is basically the index.js of...
would be cool
In case you run into errors with stdio containing unwanted dated, this worked for me: https://github.com/juliangruber/url-to-screenshot/blob/master/script/render.js#L38-L45
[Currently, PhantomJS wont wait for Content are loaded](https://github.com/apex/capture/blob/master/convert.js#L33-L37) (e.g. DOMContentLoaded / Load / etc.) It would be nice if we ensure contents are loaded :)
https://github.com/ariya/phantomjs/issues/10964