Skip to content

Instantly share code, notes, and snippets.

View joshje's full-sized avatar

Josh Emerson joshje

View GitHub Profile
var page = require('webpage').create();
if (phantom.args.length !== 5) {
console.log('Usage: rasterize.js URL filename width height delay');
phantom.exit();
} else {
var address = phantom.args[0],
output = phantom.args[1],
width = parseInt(phantom.args[2]),
height = parseInt(phantom.args[3]),