Open leandromatos opened 7 years ago
The same error occurred with 300 svg files.
No idea. Some reproducible demo code/SVGs would be a start, and perhaps your Node.js version as well.
I belive that the problem is with Phanton.js. It opens an instance to each SVG of the loop.
The ideal would be to create a way to start the library (which would instantiate Phanton.js) out of the loop, inside of the loop the transformation begin normaly, and at the end of the loop, a way to close the instance of Phantoh.js
I was able to solve using another library that does + - this, see: https://github.com/atronov/svg2png-many
I have a loop with 4.000 svg iles, when trying to convert them to PNG, an error happens.
When I try to do this with fewer images, everything works fine.
Any idea what that might be?
The error is: