2gis / node-rsvg

Parse SVG files and render them as PNG, PDF, SVG, or raw memory buffer images.
MIT License
32 stars 19 forks source link

Out of memory #7

Open mitar opened 7 years ago

mitar commented 7 years ago

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>
L8D commented 7 years ago

having the same issue when I include any text in my SVG.

dotcypress commented 7 years ago

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