mapbox / spritezero

small opinionated sprites
Other
173 stars 62 forks source link

Spritezero does not handle SVG RGB color #86

Closed NasH5169 closed 3 years ago

NasH5169 commented 3 years ago

Hello,

I'm trying to generate a sprite from basic SVG icons.

Some of my SVG icons has "rgb style" colors like:

rgb(71.764708%,6.27451%,10.196079%)

instead of basic hex codes.

The final sprite shows the icon but in gray. The color has been lost.

Any idea? Bug?

Thanks.

jseppi commented 3 years ago

@NasH5169: spritezero uses mapnik under-the-hood for SVG rasterization. mapnik only supports colors specified in HEX, per https://github.com/mapnik/mapnik/wiki/SVG-support.

NasH5169 commented 3 years ago

OK. Thank you very much.