SVG file and autosave won't load

Post questions on how to use or achieve an effect in Inkscape.
apcrcom
Posts: 11
Joined: Sat Sep 03, 2011 12:18 pm

SVG file and autosave won't load

Postby apcrcom » Mon Sep 19, 2011 10:01 am

I spent a bit of time on a business card design last week, then went to continue work today only to find that Inkscape wont open the file

"failed to load the requested file"

I wasnt initially too worried, as I have set up autosave on it, and figured I could just retrieve an earlier version from the autosave directory. However, when I do this, I get the same error.

I read a bit here about the file format and had a look at it in Notepad, but couldnt see anything amiss - not that thats saying much though as Im pretty clueless about xml

Can anyone help with this?

http://www.filesonic.com/file/2054016994

BTW, this is not an import. The file was created in inkscape and saved in inkscape

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: SVG file and autosave won't load

Postby ~suv » Mon Sep 19, 2011 10:38 am

apcrcom wrote:BTW, this is not an import. The file was created in inkscape and saved in inkscape

Really?

Code: Select all

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Generator: Adobe Illustrator 11 Build 196, SVG Export Plug-In . SVG Version: 6.0.0 Build 78)  -->

<svg
   xmlns:xapGImg="http://ns.adobe.com/xap/1.0/g/img/"
   xmlns:xap="http://ns.adobe.com/xap/1.0/"
   xmlns:ns0="http://ns.adobe.com/SaveForWeb/1.0/"
   xmlns:ns="http://ns.adobe.com/Variables/1.0/"
   xmlns:i="http://ns.adobe.com/AdobeIllustrator/10.0/"
   xmlns:x="adobe:ns:meta/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:cc="http://creativecommons.org/ns#"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:svg="http://www.w3.org/2000/svg"
   xmlns="http://www.w3.org/2000/svg"
   xmlns:xlink="http://www.w3.org/1999/xlink"
   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
   i:viewOrigin="9.8232 622"
   i:rulerOrigin="0 -167"
   i:pageBounds="0 632 465 167"
   …
For having been created with Inkscape, there's awful lot of proprietary Adobe stuff in there (all over the file) ;) (what also broke the encoding when round-trip editing it in Inkscape):

Code: Select all

/Volumes/xxxx/yyyy/Inkscape/dev/forum/_misc/apcrcom-business card 3.svg:1571: parser error : Input is not proper UTF-8, indicate encoding !
Bytes: 0xFF 0x27 0x20 0x69
<?xpacket begin='?' id='W5M0MpCehiHzreSzNTczkc9d'?><x:xmpmeta
                 ^

** (inkscape:95342): WARNING **: SVGView: error loading document '/Volumes/xxxx/yyy/Inkscape/dev/forum/_misc/apcrcom-business card 3.svg'



Anyway - here's a "fixed" version which opens fine in Inkscape 0.48.2: apcrcom-business_card_3-fixed.svg

(Probably what I deleted (due to corrupted encoding, see bug #675170 - one of the duplicates of bug #499257 ) was left there by Adobe Illustrator to cater for proprietary edits - might be that the file looks different now when opening again in AI).


Edit: attaching a cleanup and vacuumed version (no more i:pgf stuff from AI - note the reduction of file size, which allows to attach it here in the forum):
apcrcom-business card-without-pgf-stuff-vacuumed.svg
(84.78 KiB) Downloaded 206 times

apcrcom
Posts: 11
Joined: Sat Sep 03, 2011 12:18 pm

Re: SVG file and autosave won't load

Postby apcrcom » Mon Sep 19, 2011 11:04 pm

Honestly dont remember doing anything with Illustrator on this file, but if thats what you are seeing, then it must have been imported or exported at some point. Apologies for my confusion, and a lesson learned about problems this could cause in future :)

As I am a complete lamer with Inkscape :D you have probably saved me an hour or more of work re-doing this. Thanks a heap for your efforts. Much appreciated


Return to “Help with using Inkscape”