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 476507 - SVG rendering is wildly different between eog and Inkscape
SVG rendering is wildly different between eog and Inkscape
Status: RESOLVED FIXED
Product: librsvg
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: librsvg maintainers
librsvg maintainers
Depends on:
Blocks:
 
 
Reported: 2007-09-13 10:59 UTC by BKB
Modified: 2015-07-03 00:34 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18


Attachments
Arrow that shows differently with librsvg (2.43 KB, text/plain)
2013-01-16 09:23 UTC, Nicolas Raoul
  Details
Fixes bug 476507 with marker issue (4.08 KB, patch)
2015-05-01 17:33 UTC, mik@gmx.org
none Details | Review

Description BKB 2007-09-13 10:59:21 UTC
Please describe the problem:
The quickest way to see the problem is to poke through the following blog entries, including screenshots of eog and Inkscape rendering the same SVG files.

http://wordpress.com/tag/svg-rendering-mysteries/

Inkscape seems to agree with Firefox.

Steps to reproduce:
1. Open the SVG files as given above.
2. 
3. 


Actual results:
SVG rendering looks faulty in eog. Either that or Inkscape, I'm not sure.

Expected results:
I would expect the SVG to be rendered in the same way on both eog and Inkscape.

Does this happen every time?
Yes.

Other information:
If you want the SVG files to reproduce the bugs, email me.
Comment 1 Felix Riemann 2007-09-13 12:04:23 UTC
eog doesn't have it's own SVG rendering engine (in contrast to Inkscape). SVG support is provided by the librsvg library which is used by many apps throughout GNOME but doesn't support some SVG features (I think). So, I can only direct you there.

Btw, I guess you choose version 2.8.1 by accident (the blog indicates Ubuntu), but if you are still using GNOME 2.8 (and thus a similar old librsvg) you should update to a more recent version.
Comment 2 BKB 2007-09-13 13:03:05 UTC
I am using version 2.18.1 of gnome.
Comment 3 Nicolas Raoul 2013-01-16 09:23:26 UTC
Created attachment 233577 [details]
Arrow that shows differently with librsvg
Comment 4 mik@gmx.org 2015-05-01 17:33:08 UTC
Created attachment 302729 [details] [review]
Fixes bug 476507 with marker issue

This patch fixes Gnome Bugzilla bug #476507 where start and end markers have wrong orientation for specific curved lines.

This fix is only for start and end markers and not for middle markers and some special cases since they are of minor importance.

The issue arises if a curved path segment is defined as cubic bezier curve requiering four points but two of the points share the same location. In cases where two points are at the same location it is impossible to calculate an angle between an imaginary line joining both points and the coordinate system. As thus the orientation angle of a marker related to that imaginary line cannot be defined.

This Patch introduces detection of cases when two points of a cubic bezier curve are at the same location and switches to the next point describing the bezier curve.
Comment 5 André Klapper 2015-05-21 15:43:05 UTC
The Wikimedia community is interested in seeing this fixed, see https://phabricator.wikimedia.org/T97758
Comment 6 Federico Mena Quintero 2015-07-03 00:34:43 UTC
Another awesome patch; thanks!  Pushed to master as commit 99805d95a0459190d60339540f0fa6824d266435.

This will appear in librsvg-2.40.10.