Skip to content

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

Open

Description

@jliebrand

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

Activity

  1. changed the title [-]Fails to convert svg using <use>[/-] [+]Fails to convert svg (which contains <use> tags)[/+] on Feb 18, 2018
  2. samanpwbb commented on Feb 18, 2018

    @samanpwbb

    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.

  3. jliebrand commented on Feb 19, 2018

    @jliebrand
    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 :-/

  4. dieterdreist commented on Feb 20, 2018

    @dieterdreist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions