Skip to content

Instantly share code, notes, and snippets.

View hkirsman's full-sized avatar

Hannes Kirsman hkirsman

  • Estonia, Tallinn
View GitHub Profile
@hkirsman
hkirsman / rasterize.js
Last active December 30, 2015 08:29 — forked from FiloSottile/rasterize.js
Add 4x zoom.
var page = require('webpage').create(),
address, output, size;
if (phantom.args.length < 2 || phantom.args.length > 3) {
console.log('Usage: rasterize.js URL filename');
phantom.exit();
} else {
address = phantom.args[0];
output = phantom.args[1];
page.viewportSize = { width: 2000, height: 100 };