You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
phantomjs/data/code/phantom-webpage-screenshot.js

11 lines
257 B
JavaScript

var webpage = require('webpage');
var page = webpage.create();
page.viewportSize = {width: 1280, height: 720};
page.open('http://phantomjs.org', function() {
page.render('phantomjs.png');
console.log('created phantomjs.png');
phantom.exit();
});