Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to convert svg (which contains <use> tags) #26

Open
jliebrand opened this issue Feb 18, 2018 · 3 comments
Open

Fails to convert svg (which contains <use> tags) #26

jliebrand opened this issue Feb 18, 2018 · 3 comments

Comments

@jliebrand
Copy link

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

Star.svg.zip

@jliebrand jliebrand changed the title Fails to convert svg using <use> Fails to convert svg (which contains <use> tags) Feb 18, 2018
@samanpwbb
Copy link

samanpwbb commented 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 fill and stroke properties directly to your path.

@jliebrand
Copy link
Author

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
Copy link

dieterdreist commented Feb 20, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants