Adobe-SVG breaks Inkscape on debian
After producing an SVG in Adobe Illustrator, I took this file and loaded it in my debian system... Inkscape immediately broke... will no longer render simple geometrics... square / ellipse / stars... and the same bug affects several other legacy SVG capable applications. This is very serious, as reinstalling Inkscape does not fix the problem !
I wonder who else might have encountered this... what libraries might need to be replaced to get Inkscape running again ? I do not want to do an entire reinstall of debian to get Inkscape working again, but will of course, without an answer to this problem.
This again is apparently, something in the Adobe SVG, which I have read have a lot of additional code in them, beyond basic SVG. This is more than a bug... it is malicious. Hope there is an easy answer.
thanks _________________________________________________________________ Local listings, incredible imagery, and driving directions - all in one place! Find it! http://maps.live.com/?wip=69&FORM=MGAC01
On 7/19/07, stu seven <stuseven@...9...> wrote:
This is more than a bug... it is malicious. Hope there is an easy answer.
I doubt there may be any answer unless you file a bug *and attach* the offending file to it.
stu seven escribió:
After producing an SVG in Adobe Illustrator, I took this file and loaded it in my debian system... Inkscape immediately broke... will no longer render simple geometrics... square / ellipse / stars... and the same bug affects several other legacy SVG capable applications. This is very serious, as reinstalling Inkscape does not fix the problem !
I wonder who else might have encountered this... what libraries might need to be replaced to get Inkscape running again ? I do not want to do an entire reinstall of debian to get Inkscape working again, but will of course, without an answer to this problem.
This again is apparently, something in the Adobe SVG, which I have read have a lot of additional code in them, beyond basic SVG. This is more than a bug... it is malicious. Hope there is an easy answer.
thanks
Just out of curiosity... Did you also remove your home's .inkscape directory when you reinstalled inkscape? Maybe that's preventing Inkscape from working normally with other (perfectly sane) SVG files. And yes, Adobe implements the SVG format in a rather nasty way and breaks the main purpose of XML based formats: portability. Don't know if there is a way to generate "kosher" SVG files in Illustrator as there is in Inkscape (aka, without all the additional formatting and stuff)
A while ago someone (sorry, I don't remember who) posted this XSLT file to the mailing list. It removes the Adobe junk from SVG files.
--Ted
breaks the main purpose of XML based formats: portability. Don't know if there is a way to generate "kosher" SVG files in Illustrator as there is in Inkscape (aka, without all the additional formatting and stuff)
Yes, there is an option to create clean SVG files. Just uncheck the options "Preserve Adobe Illustrator Editing" and "Optimize for Adobe SVG viewer". I also recommend to use the option "output fewer <tspan/> elements" which suppresses Illustrators kerning behaviour, which results in a lot of tspan elements. Also, you can select a target profile (SVG 1.1 full, basic, tiny), define how the styling is exported, etc. I actually prefer some of the export options from Illustrator over the ones from Inkscape, esp. with the options on how to export styling or presentation attributes.
Here is a summary of Adobe Illustrator SVG options (http://www.adobe.com/svg/pdfs/illustrator_svg.pdf) - see page 7 for the export dialogue.
In summary, the Adobe Illustrator CS2 export is pretty good, I have to say. It preserves symbols, patterns, object names, gradients, filters, etc. It also supports textPath. One can also control encoding, number of decimal places and include SVG fonts. Pretty good. But people have to study the export options before complaining ...
Illustrator has problems with importing SVGs, esp. if there is a viewBox involved with values outside usual paper dimensions. This is where Inkscape does a much better job now. Also, Illustrator sometimes had problems with stroke-widths, when importing SVG.
WHOOPEE ! Gian... I went home and tried your suggestion... removed the .inkscape directory, and reinstalled... I now have a working Inkscape again ! Dont ask me how... but the other SVG apps which had also malfunctioned, now began working again with no changes or reinstallation... how strange this problem with Adobe SVGs is... but now I know how to fix it again. Thanks again for this suggestion.
Gian Paolo Mureddu wrote:
Just out of curiosity... Did you also remove your home's .inkscape directory when you reinstalled inkscape? Maybe that's preventing Inkscape from working normally with other (perfectly sane) SVG files. And yes, Adobe implements the SVG format in a rather nasty way and breaks the main purpose of XML based formats: portability. Don't know if there is a way to generate "kosher" SVG files in Illustrator as there is in Inkscape (aka, without all the additional formatting and stuff)
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
stuseven escribió:
WHOOPEE ! Gian... I went home and tried your suggestion... removed the .inkscape directory, and reinstalled... I now have a working Inkscape again ! Dont ask me how... but the other SVG apps which had also malfunctioned, now began working again with no changes or reinstallation... how strange this problem with Adobe SVGs is... but now I know how to fix it again. Thanks again for this suggestion.
I'm glad that this did it for you! Maybe something lingered in the preferences or similar? At any rate, good to hear all is OK again.
thanks to all who answered...
at least I am not alone in my suspecting the Illustrator SVG
nice to know about "clean SVG" output... however... I am just not in the mood for testing this right now :-)
I will however check to be sure all the old Ink directories are gone before trying to reinstall once more... thanks for that suggestion.
Yes, bulia... to someone who knew what it was, it might be good to see the SVG which caused this, but I cant go passing this buggy file about on the net... people will start accusing me of spreading viruses... besides which, I promptly erased every copy of the SVG :-)
stuseven wrote:
After producing an SVG in Adobe Illustrator, I took this file and loaded it in my debian system... Inkscape immediately broke... will no longer render simple geometrics... square / ellipse / stars... and the same bug affects several other legacy SVG capable applications. This is very serious, as reinstalling Inkscape does not fix the problem !
I wonder who else might have encountered this... what libraries might need to be replaced to get Inkscape running again ? I do not want to do an entire reinstall of debian to get Inkscape working again, but will of course, without an answer to this problem.
This again is apparently, something in the Adobe SVG, which I have read have a lot of additional code in them, beyond basic SVG. This is more than a bug... it is malicious. Hope there is an easy answer.
thanks _________________________________________________________________ Local listings, incredible imagery, and driving directions - all in one place! Find it! http://maps.live.com/?wip=69&FORM=MGAC01
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
On Friday 20 July 2007, stuseven wrote:
thanks to all who answered...
at least I am not alone in my suspecting the Illustrator SVG
nice to know about "clean SVG" output... however... I am just not in the mood for testing this right now :-)
I will however check to be sure all the old Ink directories are gone before trying to reinstall once more... thanks for that suggestion.
Yes, bulia... to someone who knew what it was, it might be good to see the SVG which caused this, but I cant go passing this buggy file about on the net... people will start accusing me of spreading viruses... besides which, I promptly erased every copy of the SVG :-)
I received an AI file from a customer. In my innocence I renamed it as a PS file and AIRC massaged it in Gimp. Maybe Gimp changed it to internal format and back again, thus cleaning out the bad garbage.
Anyhow I still have the original file somewhere if anyone wants to play with it.
participants (7)
-
Andreas Neumann
-
bulia byak
-
Gian Paolo Mureddu
-
John R. Culleton
-
stu seven
-
stuseven
-
Ted Gould