Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVG Rendering Error

I've made a vector graphic in Illustrator and cannot seem to get it to show up after saving it as SVG 1.1. I keep on getting this error, and it has made it so that my entire graphic won't even show up:

error on line 8 at column 93: Namespace prefix inkscape for connector-curvature 
on path is not defined

I'm not exactly sure what that means and I've looked in the SVG code and cannot figure out what to do to fix it.

What does that error mean and how do I get rid of it?

Thank you - responses are much appreciated!

like image 271
user3663071 Avatar asked May 22 '14 01:05

user3663071


2 Answers

If your file has elements with the inkscape namespace, that suggests it has originated in Inkscape. Or have you perhaps merged in part of an SVG that came from Inkscape?

What this error suggests is that the file has inkscape attributes without the inkscape namespace being defined.

Try this: go through the file and delete any attributes of the form inkscape:whatever="something". That should solve your problem.

If it doesn't, you may need to post the file somewhere so we can look at it.

like image 184
Paul LeBeau Avatar answered Oct 01 '22 22:10

Paul LeBeau


The file was created in Inkscape and placed in Illustrator, so it preserved the namespace declaration. Instead of editing the file by hand, try to do something to the image to make illustrator re-stroke-and-fill it. For example, Merge in pathfinder. If you can get Illustrator to remake it in its own way, the namespace will drop off.

like image 39
allen1 Avatar answered Oct 01 '22 22:10

allen1