rasterize.js to convert svg to png

1k Views Asked by At

I have been using phantomjs to create headless screenshots. This is how I usually do it:

phantomjs phantom-crowbar.js my-path/index.html mysvg bubble.svg

phantomjs rasterize.js bubble.svg bubble.png

When this is run locally, it works perfectly and creates the required png. However, when it is run on a remote host, the svg is created properly, but when I run the rasterize.js step, the png is not created in its entirety. The text from the svg does not show up in the png. I have tried increasing the timeout period in rasterize.js but that won't work.

0

There are 0 best solutions below