Mobile app version of vmapp.org
Login or Join
Angie364

: How to exclude hidden shapes when saving to SVG Im trying to save icons out to SVG format, one at a time, but from one document. what i mean is, i have all my icons laid out in one document,

@Angie364

Posted in: #AdobeIllustrator #Save #Shapes #Svg

Im trying to save icons out to SVG format, one at a time, but from one document. what i mean is, i have all my icons laid out in one document, and once i am ready to save them, i will move the icon i need to save to the artboard, hide everything else and save to .svg.

The problem is that opening the .svg file reveals that even if the graphic is shown as saved (correct whitespace/square, only one visible icon) -the code in the svg file contains every single element from my AI file (with the added display="none") - How can i make sure that everything that is hidden is not saved? is it even possible? Ofc i can just copy the icon i want to save to a new AI file and save that, but flipping between files and re-aligning icons to a new artbaord is tedious, prone to error and straight up sucks.

Anyone?

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Angie364

3 Comments

Sorted by latest first Latest Oldest Best

 

@Kevin459

I copy and paste only the paths I want in the SVG to a newly created art board and save to SVG from there.

I sometimes use the Pathfinder to optimise further after pasting.

Before using Pathfinder, all paths should be fully expanded.

10% popularity Vote Up Vote Down


 

@Marchetta832

Depends on how you export, but you could export artboards to EPS and then to SVG in a batch. That should get you "clean" files. It's an extra step but both can be automated easily.

10% popularity Vote Up Vote Down


 

@Murray976

Assuming that you are using Adobe Illustrator versions CS6 or CS5 you can download this script and use it as told in the tutorial:

How to: Export multiple icons to SVG files from Adobe Illustrator

IconFinder is a reliable source so you may not run into any problems.

Let me know if this works for you.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme