After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 354103 - Most SVG files are not valid
Most SVG files are not valid
Status: RESOLVED OBSOLETE
Product: gnome-themes-extras
Classification: Other
Component: Amaranth
unspecified
Other All
: Normal normal
: ---
Assigned To: Christian Fredrik Kalager Schaller
Christian Fredrik Kalager Schaller
Depends on:
Blocks:
 
 
Reported: 2006-09-03 12:08 UTC by Cameron McCormack
Modified: 2007-08-03 00:49 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to fix problems with the .svg files. (255.39 KB, patch)
2006-09-03 12:10 UTC, Cameron McCormack
none Details | Review
Patch to fix problems with the .svg files (254.20 KB, patch)
2006-09-03 12:17 UTC, Cameron McCormack
none Details | Review

Description Cameron McCormack 2006-09-03 12:08:19 UTC
Please describe the problem:
Most of the .svg files in the theme have problems that cause them not to be
conforming SVG documents.  The three main problems I found were:

  1. A strange version="1" attribute on the root 'svg' element, instead of
     version="1.0".
  2. Namespace well-formedness issues (mostly due to Adobe Illustrator
     metadata).
  3. CSS values specified using scientific notation, which is not allowed.

These problems cause the files to be unusable in certain SVG processors,
such as Batik.

Steps to reproduce:
1. Open
   gnome-themes-extras/Amaranth/icons/scalable/apps/abiword_48.svg in Batik.

Actual results:
1. Invalid SVG element "sfw" error occurs.

Expected results:
1. The SVG document to be rendered properly.

Does this happen every time?
Yes.

Other information:
Comment 1 Cameron McCormack 2006-09-03 12:10:53 UTC
Created attachment 72127 [details] [review]
Patch to fix problems with the .svg files.

This patch fixes all problems with the .svg files, except for mimetypes/gnome-mime-image-xcf.svg, which has invalid paint server references.  I am not sure what the document is meant to look like, so I can't fix this one up.  I also noticed that devices/gnome-dev-removable.svg is the same as devices/gnome-dev-cdwriter.svg, which is probably not intentional.
Comment 2 Cameron McCormack 2006-09-03 12:13:55 UTC
Incidentally, the way I fixed up the namespace issues was to remove any of the Adobe Illustrator metadata elements if they would have required me looking up what namespace they should have been in.  Lots of the files still have a bunch of the metadata elements (such as a:midPointStop and ns:variableSets elements and some RDF subtrees) which could be safely removed.
Comment 3 Cameron McCormack 2006-09-03 12:17:09 UTC
Created attachment 72128 [details] [review]
Patch to fix problems with the .svg files

Sorry, previous patch was reversed.  This one should be good.
Comment 4 Andrea Cimitan 2007-08-03 00:49:52 UTC
Closed because of the new rework of gnome-themes-extras