Phantomjs renders black boxes on Azure Websites

泄露秘密 提交于 2019-11-28 09:54:33

问题


Using latest Phantomjs binaries v1.9.7 on Azure websites, it renders black boxes instead of character.

here is an example of simple phantomjs script on Azure:

var page = require("webpage").create();
page.content = "Hello 123";
page.render("index.png");
phantom.exit(0);

the png and pdf result is [] [] [] [] [] [] [] in black

And the jpg result is big black box

This prevent us from using phantomJS as a webjob and within websites

Note : phantomjs is working fine on VM,WebRole and WorkerRole


回答1:


PhantomJs uses GDI+ APIs from Windows for creating fonts and vectors in PNGs and PDFs which is, unfortunately, not supported currently on Azure Websites



来源:https://stackoverflow.com/questions/22965791/phantomjs-renders-black-boxes-on-azure-websites

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!