Skip to main content
Known Participant
January 28, 2025
Question

Illustrator v29.2.1 creating invalid SVGs

  • January 28, 2025
  • 1 reply
  • 2619 views
SVG Issues (Jan 17 2025)
Adobe Illustrator v28.7.1 created valid SVGs. v29.2.1 creates invalid SVGs. It looks like the xmlns:xlink section of the <SVG version> element is duplicated for v29.2.1, but okay for v28.7.1. Unfortunately, I had auto-update turned on.
Is there a fix for this other than manually editing every SVG I create?
 
Corrected Header
<svg version="1.1" id="Text" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 386.14 200.57" enable-background="new 0 0 386.14 200.57" xml:space="preserve">
 
Incorrect Header (v29.2.1)
<svg version="1.1" id="Text" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 386.14 200.57"  enable-background="new 0 0 386.14 200.57" xml:space="preserve">

1 reply

Anshul_Saini
Community Manager
Community Manager
February 3, 2025

Hi @stitchsds,

 

Thanks for reporting this. The team has checked but hasn’t been able to reproduce the issue on an internal build of an upcoming version (not yet publicly available). However, since the duplication may depend on specific content or features in your file, could you share a sample .ai file where this occurs? That would help us investigate further.

 

Also, just to confirm—are you specifically selecting SVG 1.1 as the profile while exporting, or does the issue persist regardless of the profile used?

 

Looking forward to your response!

 

Best,

Anshul Saini

Known Participant
February 7, 2025

I have the same isue, but when exporting as SVG 1.0 (SVG 1.1 is rendered incompletely by the editor) from AI 29.2.1. The issue does not exist with previous versions (29.1). An example is attached.

Known Participant
February 21, 2025

Yes, if you happen to have the original AI file, you can re-export to an SVG and that extra code bit isn't added. The problem is when you are updating an existing SVG file. Saving out as a new SVG duplicates that bit of code, invalidating the file.

 

AEM Guides only uses the SVGs, so the "original" AI file isn't in the repository. Saving the SVG as an AI to make the change doesn't work. I've tried that, and the SVG text in the header remains and is duplicated the next time an SVG is saved out. AI v29.3 still duplicates the SVG text code.


So I tried a bit more: opening existing SVGs, editing them and saving as SVG 1.1 works. Whereas saving existing SVGs as SVG 1.0 does not.

Using fresh AI files and saving from there as SVG 1.0 works. So basically roundtripping with SVG 1.0 is boken.