Skip to main content
Participating Frequently
October 14, 2022
Question

AI loses image fill when opening SVG

  • October 14, 2022
  • 1 reply
  • 579 views

The attached file opens just fine in a browser, yet when opened with AI the shape has no fill.

Adobe Illustrator 26.5, macos Monterey, M1 Macbook Pro.

 

This topic has been closed for replies.

1 reply

Monika Gause
Community Expert
Community Expert
October 14, 2022

I would assume there are just too many groups inside groups.

 

You should never bring yourself into a situation where you have to re-open an SVG in Illustrator. For Illustrator SVG is an export format. It's famous for not being able to read its own SVGs.

 

Your work file should be AI.

Participating Frequently
October 16, 2022

Yes, I'm well aware that AI has problems reading SVGs it creates. I have also reported to Adobe how it adds extra groups when saving SVGs that contain shapes with clipped image fills. Their responses, as I follow up, are either "it was fixed in the latest release, please upgrade" or "it will be fixed in the next release", both of which have yet to be proven true. Speaking as an experienced software developer, fixing this bug in AI should be very straightforward.

 

I have also seen the open time message about an SVG having too many nested groups and warning that content may be lost, and so have a Python script to remove these extraneous groups before reopening the file. The above example though does not give this warning.

 

My conclusion is that Adobe have intentionally decided to add those extra groups and not always warn about them in order to deter the use of AI for round-trip SVG work. Interestingly, a competing product also introduces unnecessary groups when exporting SVGs. We though have now found another product that does work well for editing SVGs and will be dropping the use of Illustrator.

 

 

Monika Gause
Community Expert
Community Expert
October 17, 2022

FYI, Boxy SVG is a comprehensive editor with an intuitive and clean interface that uses SVG as its native format -- in my opinion it is easier to use than either Inkscape or Illustrator. Most importantly, it doesn't corrupt SVG files. I fail to understand why Adobe claims that AI supports SVG when it clearly doesn't.


"Native file format" is a completely different thing than being able to export a valid file. Illustrator is older than SVG and it can do many things that SVG doesn't support - e.g. CMYK, meshes or flood fill. You probably wouldn't find a lot of people who would gladly give that away in exchange for native SVG documents.

 

If you want something changed: http://illustrator.uservoice.com

Changing the native file format is probably not within reach.

 

As for "Boxy SVG": I would like my vector app with decent functionality. YMMV