が、それはのclipRectファントムJS - のclipRect - 私は画面にファントムJSを使用していJavascriptのヘルプ
http://code.google.com/p/phantomjs/wiki/Interface#clipRect_(objectと呼ばれる機能を持っているページに
http://code.google.com/p/phantomjs/wiki/QuickStart#Rendering
ショット)
誰かが私を見ることができますどのように私はclipRect私たちに次のコードを変更するので、私は部分的なスクリーンショットを取得し、全体的なものではない? fine manualから
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: 600, height: 600 };
phantom.open(address);
}
} else {
var output = phantom.args[1];
phantom.sleep(200);
phantom.render(output);
phantom.exit();
}
醸造はphantomjsとの間違ったバージョンをインストールしましたインストールしていたバージョンはclipRectをサポートしていません。閉まっている。 – jBeas