Last active

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Simple script to render a page using PhantomJS to a .png (with viewport width and timeout).

View gist:5183195
1 2 3 4 5 6 7 8
var page = require('webpage').create();
page.viewportSize = { width: 1200, height: 1200 };
page.open('https://dl.dropbox.com/u/8554242/gitstatus.html?shurcooL', function () {
window.setTimeout(function () {
page.render('out.png');
phantom.exit();
}, 5000);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.