Ammaroff
Ammaroff

Reputation: 954

Phantomjs renders black boxes on Azure Websites

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 black boxes from phantomsJS on Azure Websites

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

Upvotes: 2

Views: 1878

Answers (1)

ahmelsayed
ahmelsayed

Reputation: 7402

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

Upvotes: 6

Related Questions