Skip to main content

SVG export is bulky and leaks system information

The most horrid issue:

  • SVG export adds @font-face for every font in my system. This is not just a huge bulk in the exported file (2350 lines on my system), but also trackable information about my system — my OS, username, installed software (some apps register their own folders for font discovery) and, well, the list of fonts themselves is an information that can be easily used to identify a user.

Other issues that would make me happy and skip a road to SVGOMG:

  • SVG adds useless IDs to everything and doesn’t use it for styles and such.

  • Point precision is excessively high (5 digits after the .), the file size can be reduced by several times with no visible precision loss (2 digits is indistinguishable from the original)

As you’re building an Electron/Nw.js/whatever app, you can add svgo package itself to automate SVG optimization. The difference is colossal:

And, plllleeease, add support for “Copy to Clipboard” in the export menu and context menus of shapes 🙃

3 comments

Log in to comment and vote

Comments3

  • 이민규

    Team•

    Jul 2, 2025

    Now system fonts are not exported in 1.0.0-beta.18

  • CoMiGo Games (Космо Мизраил Горыныч)

    •

    May 30, 2025

    Another excess stuff in SVG: every transparent fill gets exported, too. This results in invisible—and thus useless—tags in SVG output that can’t be correctly removed by an optimizer like SVGO. This is a prevalent problem in most built-in shapes.

    Example from an already optimized output file: (the source file is hell so I’m not bothering to even show it)

    I use mockups made with Frame0 as illustrations for my blog post about UI/UX design. Right now I have to manually remove these tags, and in an optimized ~28kb image I removed ~8kb of junk. So an exported 172kb file should have actually had a size of just 20kb.

    On we go to optimizing 10 more illustrations! 🥲

  • 이민규

    Team•

    May 19, 2025

    Thank you for your feedback. We will review the issues you mentioned and try to make resolutions. In particular, we will work to ensure that the issue of system font information is addressed as soon as possible.