I'm investigating using PhantomJS to do some automated image rendering, based on an existing web javascript codebase.
However, using the provided rasterize.js
sample code renders our site as a 600x600 black image. Other sites seem to render ok.
Now, our site does use WebGL by default, but has a 2D fallback which I've checked works (eg, in Chrome with WebGL disabled) - and the #map=2d
flag should skip using WebGL.
What other reasons could cause it to produce this pure black image?
Perhaps it's taking a screenshot before the page has loaded at all?
Are there any ways to debug this?
I'm using the pre-compiled Ubuntu binaries, 2.0.1-development
, in an Ubuntu Precise VM on my Macbook.