Sha256: 9a31942c276bd11e4ceb7576f9b33cff1e901bb62bfa0cab947430fc3be174ad
Contents?: true
Size: 431 Bytes
Versions: 11
Compression:
Stored size: 431 Bytes
Contents
if (phantom.state.length === 0) { if (phantom.args.length !== 2) { console.log('Usage: rasterize.js URL filename'); phantom.exit(); } else { var address = phantom.args[0]; phantom.state = 'rasterize'; phantom.viewportSize = { width: 800, height: 600 }; phantom.open(address); } } else { var output = phantom.args[1]; phantom.render(output); phantom.exit(); }
Version data entries
11 entries across 11 versions & 1 rubygems