: 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,
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?
More posts by @Angie364
3 Comments
Sorted by latest first Latest Oldest Best
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.
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.
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.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2025 All Rights reserved.