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 689832 - Simple SVG file rendered incorrectly
Simple SVG file rendered incorrectly
Status: RESOLVED OBSOLETE
Product: librsvg
Classification: Core
Component: general
2.36.x
Other Linux
: Normal normal
: ---
Assigned To: librsvg maintainers
librsvg maintainers
Depends on:
Blocks:
 
 
Reported: 2012-12-07 08:49 UTC by Lubos Dolezel
Modified: 2017-12-13 17:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Problematic SVG file (5.53 KB, image/svg+xml)
2012-12-07 08:49 UTC, Lubos Dolezel
  Details
Correct rendering (from Inkscape) (1.04 KB, image/png)
2012-12-07 08:50 UTC, Lubos Dolezel
  Details
Incorrect rendering (from GIMP) (488 bytes, image/png)
2012-12-07 08:51 UTC, Lubos Dolezel
  Details
Suggested patch (4.94 KB, patch)
2013-01-15 14:25 UTC, Lubos Dolezel
none Details | Review

Description Lubos Dolezel 2012-12-07 08:49:13 UTC
Created attachment 230953 [details]
Problematic SVG file

I have a very simple SVG file that is rendered incorrectly in all applications that use librsvg internally. In other apps (such as Inkscape or even Internet Explorer), the image shows up just fine.

I found out that if I break the topmost element group in Inkscape, it works even under librsvg. But that's not a solution...
Comment 1 Lubos Dolezel 2012-12-07 08:50:20 UTC
Created attachment 230954 [details]
Correct rendering (from Inkscape)
Comment 2 Lubos Dolezel 2012-12-07 08:51:51 UTC
Created attachment 230955 [details]
Incorrect rendering (from GIMP)
Comment 3 Lubos Dolezel 2013-01-15 14:25:33 UTC
Created attachment 233524 [details] [review]
Suggested patch

The attached patch that we wrote at Orderman may be rather hackish, but fixes the problem.

The real problem is that librsvg tries to resolve references to gradients at the time the reference is found. This works only if the referred gradient was defined beforehand, but that doesn't seem to be required by the SVG specification.

The patch allows for lazy reference resolution.
Comment 4 GNOME Infrastructure Team 2017-12-13 17:57:07 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/librsvg/issues/70.