domenic / svg2png

Converts SVGs to PNGs, using PhantomJS
Other
584 stars 134 forks source link

weird phantomjs/svg2png error #94

Closed operolim closed 7 years ago

operolim commented 7 years ago

I keep getting the error below, whether I pass the svg2png constructor the width and height of svg or not. I've looked everywhere for a solution or a workaround, but I haven't found one yet and I was hoping someone could shed some light on how to resolve this.

svg2png(Buffer.from(svgText, 'utf8'), {width: 300, height: 400})

Error: Command failed: /app/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs /app/node_modules/svg2png/lib/converter.js {"width": 300, "height": 400}

domenic commented 7 years ago

Can you try it on a very simple SVG, and if that still fails, post the whole code snippet?

operolim commented 7 years ago

Actually I'm only seeing this error in my dev environment. It works fine locally.

operolim commented 7 years ago

Any updates on this?

domenic commented 7 years ago

Given that you have given no way to reproduce the issue, no. Closing. Sounds like an issue with your environment, not svg2png.