You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fails to convert svg (which contains <use> tags) #26
The attached svg does not seem to get converted in to the png sprite (nor does it throw an error btw).
I suspect the tags to cause the problem
a- is there a way to ensure it does convert? and if not
b- do you have any recommendation on any tools that can replace tags with the referenced tags? preferably a commandline tool rather than some gui
I had a quick look at your SVG. I think you're running into an upstream issue (mapnik/mapnik#2968) with xlink:href properties in Mapnik's SVG renderer – which is what spritezero uses under the hood. As a workaround, consider applying the fill and stroke properties directly to your path.
Thanks - that mapnik bug was raised three years ago with the last update one year ago... doesn't sound like that'll get fixed any time soon?
Unfortunately the svgs I have (lots of them) are produced via figma.com where I do not have control over the export properties. And I've yet to find a tool that can (mass)update them either :-/
Activity
[-]Fails to convert svg using <use>[/-][+]Fails to convert svg (which contains <use> tags)[/+]samanpwbb commentedon Feb 18, 2018
I had a quick look at your SVG. I think you're running into an upstream issue (mapnik/mapnik#2968) with xlink:href properties in Mapnik's SVG renderer – which is what spritezero uses under the hood. As a workaround, consider applying the
fillandstrokeproperties directly to your path.jliebrand commentedon Feb 19, 2018
Thanks - that mapnik bug was raised three years ago with the last update one year ago... doesn't sound like that'll get fixed any time soon?
Unfortunately the svgs I have (lots of them) are produced via figma.com where I do not have control over the export properties. And I've yet to find a tool that can (mass)update them either :-/
dieterdreist commentedon Feb 20, 2018