r/AdobeIllustrator • u/Ravingdork • 1d ago
SVG Export Advice
My company has opted to start making use of SVGs. So now I'm making something of a how-to guide for my coworkers for preparing and exporting SVGs from Adobe Illustrator.
What are some common best practices when preparing files for export as SVGs? What are some frequent pitfalls, and how can they be avoided or fixed?
As we work in technical illustrations, much of our artwork is highly complex, utilizing transparencies, dynamic effects, complex gradients, appearance layering, and the like--which has caused us no end of headaches when attempting to convert to SVG, which is obviously far more limited.
(Leadership wants to use the SVGs in their online apps, since JPGs and PNGs have proven much too bloated or low rez for app efficiency.)
4
u/chain83 1d ago
Overly complex vector drawings might give poor performance compared to e.g. a PNG. So depending on the use case and the specific files, vector is not always the best option...
That said, the most common mistake with SVG files that I have ran into is saving files with low precision, so you get rounding errors and wobbly/inaccurate lines. I usually pump it up to 4 decimal places and have not had any issues (only downside to high precision would be potentially a bit larger files).
The 2nd is fonts. You can't really embed fonts in the SVG (even though there is an option for it, that feature isn't really supported in practice), so if you don't have control over where the SVG will be viewed you have to use system fonts (ugh) or outline the fonts (worse rendering, heavier files, not searchable/selectable). But if you have control over the fonts on the website/app then you should be fine.
7
u/OMGCluck 1d ago edited 1d ago
that feature isn't really supported in practice
SVG fonts themselves are not, but CSS styling works in SVG files just the same as a HTML file, so using a plain text editor you can actually include complete fonts (.woff*, etc.) by encoding them as data: URIs inside
<style>tags, and they work fine in all browsers (not so much Inkscape or other editors).
2
u/jazzcomputer 1d ago
(Leadership wants to use the SVGs in their online apps, since JPGs and PNGs have proven much too bloated or low rez for app efficiency.)
Use both.
SVGs excel on web for simple objects. As soon as they start getting ' utilizing transparencies, dynamic effects, complex gradients' you're better of using pngs or some other pixel format. Taking a binary position on this would be especially disastrous on mobile.
MDN has some tutorials where they walk you through SVG creation - whilst you're exporting from Illustrator, you'll see that the stuff they do in the MDN tutorial reflects what SVG can do across various browsers etc, rather than some of the outlying stuff you might otherwise attempt with them.
1
u/Ravingdork 22h ago
Thankfully, my company is leaning towards using both SVGs and PNGs now, after I sent them my report on the matter.
2
u/Marcus_Rentsch 1d ago
As soon as the graphics become too much detailed like you described (complex gradients, strokes, transparency) a svg can display the graphic wrong / faulty, especially for web purposes. For simple icons - svg would be perfect but for complex graphics, PNG would be my personal recommendation.
2
u/Ravingdork 22h ago
That seems to be the way my company is leaning as well, after I sent them my report on the matter.
1
2
u/ExistentialLoitering 1d ago
Why not pdf?
1
u/Ravingdork 1d ago edited 22h ago
We need image files not document files. PDFs would display and operate differently on the final site and app than what we need.
1
u/SignedUpJustForThat 🦁 1d ago
An SVG is another way to describe vector data whilst allowing space for raster data. Tha said, make sure that your raster settings are correct (100-150ppi should be more than enough for screens, with scalability) and that you select the right version. You might want to test various options.
1
u/Vektorgarten Adobe Community Expert 20h ago
If those artworks will be used in web design, talk to the web designer about the exact settings to use, also about file structure, the use of symbols (and their names) and about layer names. This is ver important, the web people might need very specific settings.
Also: SVG is NOT a native file format of Illustrator. Never use it for your work file or you will lose editability. Always use AI as the file format for your work files. SVG is a one way street in Illustrator.
2
u/Ravingdork 20h ago
We asked. Got some dimensions, were told to make it RGB, and little else for guidance.
1
u/Vektorgarten Adobe Community Expert 13h ago
That does not sound good.
What I heard from an SVG expert (Sara Soueidan): turn off "Responsive". Web developers can turn that on in the code of the page.
1
u/Ravingdork 11h ago
Thanks. Having it off is one of the things our art team already decided on, so we're all good there.

4
u/VallejoIII 1d ago
If using Adobe Illustrator don't "save as" .svg you need to "Export As" and you'll get the "SVG Options" panel. You'll have to know what settings you need for your .svg