Skip to main content
Participating Frequently
September 30, 2022
Question

"save as Tiny SVG" leads to invalid file

  • September 30, 2022
  • 2 replies
  • 2249 views

Good day everyone

 

I opened a specific .svg file and saved it as SVG Tiny 1.2. The resultinv .svg cannot be opened anymore. Error messages say: "Invalid file. Check before opening" and "unknown error" (find the original German error messages attached).

 

The .svg contains elements which are unknown to me: xmlns:x="&ns_extend;" xmlns:i="&ns_ai;" xmlns:graph="&ns_graphs;" Once I delete them, the file opens perfectly fine.

 

The problem is, that all new SVG Tiny 1.2 get the questionable xmlns elements and get corrupted, no matter what content.

 

The only solution was to uninstall and reinstall Illustrator. Therefore the issue is low priority to me as I can avoid the first .svg file which caused the problem. But anyway, does one of you have an explanation for the issue?

 

Thank you and kind regards, Barbara

This topic has been closed for replies.

2 replies

Monika Gause
Community Expert
Community Expert
September 30, 2022

I hope you are not using SVG as the file format for your work file. That is not recommended, because you lose all live objects and because saving as SVG might even deform your paths (at least slightly). Also Illustrator is famous for not being able to open its own SVGs. SVG is an export format. Don't roundtrip it with Illustrator.

 

When exporting an SVG, use "Export for screens" resp. the "Asset export". That produces the more modern code.

 

Are you sure you need an SVGTiny?

Participating Frequently
September 30, 2022

I need SVG Tiny 1.2 for display UI buttons which need to be scalable and as low file size as possible, the Tiny profile is what the display/controller manufacturer recommends. 

Via "export for screens" and "Asset export" I don't see the Tiny option, would be nice if you could advise me on that.

 

Though your answer is helpful in another way, it doesn't explain why the "save as SVG Tiny" of my particular file makes AI write unnecessary information to all SVG (as explained in my first post).

Monika Gause
Community Expert
Community Expert
September 30, 2022

WIth simple graphics in buttons do you see any file size difference between saving as SVG Tiny and using the "Asset export"?

 

Your file is unreadable in Illustrator. Is it also invalid as per the W3C validator? Because if not, then it doesn't really matter of Illustrator can read it. The receiving application must be able to read it.

Participating Frequently
September 30, 2022

I forgot the resulting Tiny SVG... please find it here.