Phantomjs写出完全透明的图像

时间:2013-11-23 16:56:36

标签: phantomjs

我的Debian服务器上的

简单rasterize.js脚本(来自phantomjs示例)有时会写出完全透明的图像(如果它是PNG),但它具有常规尺寸。大部分时间都会发生这种情况,但在极少数情况下它会产生正确的图像。 我无法找出它为什么会发生。

我的系统:

Debian GNU/Linux 7.2 (wheezy) with ext4
Phantomjs 1.9.2

rendering sites: http://www.yahoo.com/ and http://phantomjs.org/

使用的脚本:https://github.com/ariya/phantomjs/blob/master/examples/rasterize.js

PS:我也在CentOS服务器上遇到过这个问题。

0 个答案:

没有答案