Skip to content

Instantly share code, notes, and snippets.

@dru
Created May 10, 2012 15:51
Show Gist options
  • Save dru/2654066 to your computer and use it in GitHub Desktop.
Save dru/2654066 to your computer and use it in GitHub Desktop.
PhantomJS render page
var page = new WebPage(), url = 'http://refine.io';
page.open(url, function (status) {
if (status === 'success') {
page.render("refineio.png");
phantom.exit();
}
});
@dru
Copy link
Author

dru commented May 10, 2012

bin/phantomjs ./render.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment