SVG Size Bloated by “adobe_illustrator_pgf” tag

web dev here. I just received a 400 KB SVG of a very simple icon. It didn’t make any sense, so I looked in the SVG file and almost the entire size of the SVG is in a tag with an id of “adobe_illustrator_pgf”. I tried to look this up, but Google was convinced I was spelling PDF wrong. What is this? I removed it and the SVG size dropped to 8 KB! Is there something I can ask the design team to do to remove this automatically on export?


I assume you are seeing something like this, followed by a lot of code:

<i:pgf  id="adobe_illustrator_pgf">

HdFlxw9Pb75//dXL11+f3vwXPjXh8MymdHA+HZ6Zcsf/ . . . etc, etc.

The code is basically the entire Illustrator document, which is useless if you don’t need that. You can prevent this by asking your design team to make sure they uncheck the “Preserve Illustrator Editing Capabilities” option when saving the SVG.

enter image description here

Source : Link , Question Author : Chris Hayes , Answer Author : Billy Kerr

Leave a Comment