Skip to content

Instantly share code, notes, and snippets.

@ikekou ikekou/capture.js
Last active Aug 29, 2015

Embed
What would you like to do?
[node.js][javascript][phantomjs] phantomjsでスクリーンキャプチャ
var page = require('webpage').create();
var width = 1200;
var height = 768;
page.viewportSize = {
width: width,
height: height
};
page.open('http://localhost:8000/', function () {
window.setTimeout(function () {
page.render('pashalistock.png');
phantom.exit();
}, 200);
});
$ phantomjs capture.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.