1、在用 phantomjs 的 rasterize.js 进行网页截图的时候,注意以下问题:
-直接打开bin/下的phantomjs.exe,进行phantomjs rasterize.js http://ariya.github.com/svg/tiger.svg tiger.png ,报错
-应该是打开cmd,找到phantomjs.exe所在的文件夹,直接执行 phantomjs rasterize.js http://ariya.github.com/svg/tiger.svg 就可以了。
未完,待续……
phantomjs 学习网址:
http://javascript.ruanyifeng.com/tool/phantomjs.html#toc11