Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/image/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Image 截图时未加载casperjs图像_Image_Phantomjs_Casperjs_Font Awesome_Webfonts - Fatal编程技术网

Image 截图时未加载casperjs图像

Image 截图时未加载casperjs图像,image,phantomjs,casperjs,font-awesome,webfonts,Image,Phantomjs,Casperjs,Font Awesome,Webfonts,当我用casperjs截图时,图像没有显示出来。这些是很棒的图片。 手动查看站点时,图像确实有效。] 有人有什么想法吗?你在用capture()截图吗 像这样 casper.start('http://www.google.fr/', function() { this.capture('google.png', { top: 100, left: 100, width: 500, height: 400 }); }

当我用casperjs截图时,图像没有显示出来。这些是很棒的图片。 手动查看站点时,图像确实有效。]


有人有什么想法吗?

你在用
capture()
截图吗

像这样

casper.start('http://www.google.fr/', function() {
    this.capture('google.png', {
        top: 100,
        left: 100,
        width: 500,
        height: 400
    });
});

您使用的是什么PhantomJS版本?你试过v2.0.0吗?请注册到
resource.error
page.error
remote.message
casper.page.onResourceTimeout
事件()。也许有错误。你能在你的问题中包括一张损坏图像的截图吗?casper.then(function(){casper.capture(successful);});