Phantomjs呈现在Azure网站黑匣子 [英] Phantomjs renders black boxes on Azure Websites

查看:201
本文介绍了Phantomjs呈现在Azure网站黑匣子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用最新的 Phantomjs二进制v1.9.7 上Azure的网站,它呈现的人物,而不是黑盒子。

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

在这里简单phantomjs脚本在Azure上的例子:

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);

在黑色的

PNG和PDF的结果是[] [] [] [] [] [] []

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

和JPG的结果是大黑框

And the jpg result is big black box

这$ P $使用phantomJS作为webjob和网站内pvent我们

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

请注意:phantomjs是在VM,WebRole和WorkerRole做工精细

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

推荐答案

从Windows PhantomJs使用 GDI + 的API创建的PNG图像和PDF的字体和向量这是不幸的是,目前不支持在Azure网站

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

这篇关于Phantomjs呈现在Azure网站黑匣子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆