mapbox / mapbox/spritezero-cli

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

Open
#26 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
181
Forks
67
PR merge metrics
No merged PRs in 30d

Description

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](https://github.com/mapbox/spritezero-cli/files/1734799/Star.svg.zip)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Use the attached Star.svg as the reproduction and run it through the CLI to confirm the silent conversion failure. The issue names no source files or tests, so trace the SVG conversion entry point and add or update coverage for elements; done means the SVG converts successfully or the limitation is documented with a clear recommendation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.