<div dir="ltr">I am looking to use librsvg to convert a raster image into png. I am calling the command line version of librsvg directly from PHP. However, librsvg is giving up because the file is too big. Notably, Wikimedia is able to render the image. Here are the commands which caused the failure: <div><br></div><div><div>$ wget <a href="https://upload.wikimedia.org/wikipedia/commons/d/df/USA_location_map_-_counties.svg">https://upload.wikimedia.org/wikipedia/commons/d/df/USA_location_map_-_counties.svg</a></div></div><div><div>$ rsvg --width 800 --height 417 USA_location_map_-_counties.svg USA_location_map_-_counties.png</div><div>Error reading SVG:Error domain 1 code 1 on line 203639 column 1 of file:///data/project/magog/tmp/USA_location_map_-_counties.svg: internal error: Huge input lookup</div></div><div><br></div><div>Is anyone enough of a librsvg guru to be able to point me to how Wikimedia is able to render this PNG, but I am not? You can see the rendered file at <a href="https://commons.wikimedia.org/wiki/File:USA_location_map_-_counties.svg">https://commons.wikimedia.org/wiki/File:USA_location_map_-_counties.svg</a>.</div><div><br></div><div>Thanks</div><div>Magog</div></div>