[solved] Malformed URI: Cannot open SVG

Post questions on how to use or achieve an effect in Inkscape.
smartboyathome
Posts: 2
Joined: Mon Jul 28, 2008 2:25 am

[solved] Malformed URI: Cannot open SVG

Postby smartboyathome » Mon Jul 28, 2008 2:50 am

Hello, I was planning on using some Foxkeh images from [url=http://www.foxkeh.com/downloads/parts/]here/url], but when I open them, Inkscape just shows the file's page size, not the actual content. In a terminal, it says:

Code: Select all

** (inkscape:16421): WARNING **: Malformed URI

I can get other SVG images to load, but not these ones. These ones are also able to be loaded in all the Image Viewers I have tried and Firefox. I noticed they were exported from Adobe Illustrator by the author, could that have something to do with it? How would I get around this? Thankis.

User avatar
sas
Posts: 404
Joined: Sat Oct 06, 2007 5:42 am

Re: Malformed URI: Cannot open SVG

Postby sas » Mon Jul 28, 2008 4:29 am

I looked at the first SVG file on that page. The problem is that the file contains a URL with non-ASCII characters in it. Inkscape considers that to be wrong (presumably it wants the non-ASCII characters to be URL-encoded).

It's easy enough to fix the file in a text editor: change the 'id' attribute on the 'symbol' element to id="head", and change the 'xlink:href' attribute on the 'use' element to xlink:href="#head". The other files on that page can probably be fixed the same way.

smartboyathome
Posts: 2
Joined: Mon Jul 28, 2008 2:25 am

Re: Malformed URI: Cannot open SVG

Postby smartboyathome » Mon Jul 28, 2008 5:13 am

Thanks, that worked. Now to notify the author of these images of the bug in them. ;)


Return to “Help with using Inkscape”