svgo-compressor icon indicating copy to clipboard operation
svgo-compressor copied to clipboard

Inline Tags Option

Open asalah-eldin opened this issue 7 years ago • 4 comments

Hi, Most of the SVGs exported can not be used in android studio, as android studio does not support <defs> & <use>. Although it's cleaner to use <defs> & <use>, but it makes the SVG useless in this case. It would be nice to have a way to export the SVG without any internal referencing. Thanks.

asalah-eldin avatar Mar 20 '17 14:03 asalah-eldin

Interesting, I'll investigate and see what we can do…

bomberstudios avatar Mar 23 '17 14:03 bomberstudios

Did you find a solution to this? My preferred output would be: <svg ... ><path ... /> and everything else stripped away.

asknback avatar Mar 10 '18 15:03 asknback

Bumping this issue

zomars avatar May 17 '18 17:05 zomars

there are discussion about this here: https://github.com/svg/svgo/issues/563

It should be possible to create a SVGO plugin that does this (docs here: https://github.com/svg/svgo/blob/master/docs/how-it-works/en.md) and then make this sketch plugin use the svgo plugin (I can do that once we have the svgo plugin)

mathieudutour avatar May 17 '18 17:05 mathieudutour