Tips for Illustration File Optimization
When creating a graphic many designers pay attention only to the appearance of the exported graphic. When working with SVG, it's also essential to consider how the code output is affected as well. Several steps can be taken in your design program (Adobe Illustrator or Figma) to optimize exported SVG graphics.
Please follow the steps below to ensure the best possible Smart SVG™ performance.
Optimizing an Illustration in Adobe Illustrator
Remove any unnecessary points along your file paths
Keep strokes un-outlined wherever possible
Create compound paths of graphic elements that use the same fill and stroke style
Verify that the Swatches dialogue contains only your icon colors
Swatches dialogue > Add Used Colors
Swatches dialogue > Select All Unused > Delete
Exporting an Illustration From Adobe Illustrator
Place your illustration on a single Artboard
Object > Artboards > Fit to Artwork Bounds
File > Export > Export As… > SVG > Export > (no changes) > OK
Optimizing an Illustration in Figma
Remove any unnecessary points along your file paths
Flatten OR Outline all text elements
Exporting an Illustration From Figma
Select the illustration
Background Fill dialogue > hidden
Export dialogue > SVG > Export
We’ve Heard Good Things
A successful Smart SVG™ begins with a strong SVG. Consider these tools for optimization.
1. Un-outlined strokes contain fewer data points than outlined strokes, resulting in a smaller file size. To convert outlined strokes back into single strokes, we’ve heard good things about Producthunt.