node-rsvg
node-rsvg copied to clipboard
Out of memory
Followup from https://github.com/walling/node-rsvg/issues/3.
It seems such SVG throws an out of memory error:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg" pointer-events="none" width="50" height="50" style="width: 50px; height: 50px; background-color: #2196F3;">
<text text-anchor="middle" y="50%" x="50%" dy="0.36em" pointer-events="auto" fill="#ffffff" font-family="Helvetica, Arial, Lucida Grande, sans-serif" style="font-weight: 400; font-size: 28px;">
AD
</text>
</svg>
having the same issue when I include any text in my SVG.
Same with this test file
Rendering options: { width: 600, height: 320, format: 'png' }
System Version: macOS 10.12.1 (16B2657)
Node version: 6.9.1