PhantomJSがインストールされていて、the official Phantom websiteのサンプルスクリプトが正常に動作しています。PhantomJS screenshot always blank
var page = require('webpage').create();
page.open('http://github.com/', function() {
page.render('github.png');
phantom.exit();
});
を私は入れません全ては582Kb
任意のアイデアを計量空白github.pngファイルです:
私はthis screenshot exampleが動作するように取得しようとしていますか?
pngファイルをどこかにアップロードできますか?それが大きければ、おそらく空白ではありません。 – phihag
GitHubが安全に提供されているので、URLは 'https:// github.com /'である必要があります。 –
このような推測を避けるために、私はちょうど最新のPhantomJSでこの正確なコードを試してみました。 – smarx