Last modified: 2012-02-21 11:12:04 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T6976, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 4976 - Upgrade librsvg for better SVG support
Upgrade librsvg for better SVG support
Status: CLOSED FIXED
Product: Wikimedia
Classification: Unclassified
SVG rendering (Other open bugs)
unspecified
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://librsvg.sourceforge.net
:
Depends on:
Blocks: 4478 4567 4593 5109 5110 5115
  Show dependency treegraph
 
Reported: 2006-02-12 20:51 UTC by Gustav Broberg
Modified: 2012-02-21 11:12 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Gustav Broberg 2006-02-12 20:51:39 UTC
The librsvg version used on Wikimedia's servers seems to be pretty outdated.
According to
http://meta.wikimedia.org/wiki/SVG_image_support#Current_implementation the
version used is 
pre-Cairo. The first stable librsvg version using Cairo backend was released
2005-09-15 and it works just fine.

The outdated version holds back some SVGs that could replace current PNGs.
Problems include lacking support for dashed lines, lack of support for viewboxes
and some various rendering anomalities. Here are some examples:
http://en.wikipedia.org/wiki/Image:DDC_field.svg vs.
http://en.wikipedia.org/wiki/Image:DDC_field.png

http://en.wikipedia.org/wiki/Image:Cartesian_coordinates_3D.svg vs.
http://en.wikipedia.org/wiki/Image:Cartesian_coordinates_3D.png
Comment 1 Brion Vibber 2006-02-13 05:36:55 UTC
2.3.93 seems to misposition the text on [[Image:Mitochondrie.svg]].
Have to do some more testing...

On the plus side, it seems to be marking a white background color so the
transparent rendered images look ok in IE 6.0.
Comment 2 Brion Vibber 2006-02-13 06:32:21 UTC
Filed upstream as:
http://bugzilla.gnome.org/show_bug.cgi?id=330956

Seems to be regression in 2.3.93; 2.3.92 is ok, and reverting a patch there looks ok.
Comment 3 Brion Vibber 2006-02-27 12:01:39 UTC
Installed 2.14.0 and forcing all thumbs to regenerate (for this and various other fixed 
image bugs). Referenced images look good.
Comment 4 Francois 2006-02-28 11:51:04 UTC
Sorry, this still doesn't work for Gradients.
http://bugzilla.wikimedia.org/show_bug.cgi?id=4593

Needs more rsvg lib fixes :(

reopening.
Comment 5 Martin von Gagern 2006-02-28 13:11:59 UTC
I just compiled librsvg-2.14.0 locally. The fencing image gets rendered
correctly here. So I'd assume the error is not in librsvg this time but rather
in some underlying lib, maybe cairo or something.

Some information on the libs I have installed here:
cairo-1.0.2:  libcairo.so.2.2.3
glib-2.8.6:   libg{lib,module,object,thread}-2.0.so.0.800.6
gtk+-2.8.12:  libgdk_pixbuf-2.0.so.0.800.12
libpng-1.2.8: libpng12.so.0.1.2.8
pango-1.10.3: libpango{,ft2}-1.0.so.0.1003.0
xorg-6.8.2:   lib{X11.so.6.2,Xext.so.6.4,Xrender.so.1.2.2}
Comment 6 Brion Vibber 2006-02-28 21:18:51 UTC
There's nothing to upgrade, resolving FIXED. Also please remember that EXISTING 
RENDERINGS HAVEN'T ALL BEEN REBUILT YET. TEST NEW SIZES BEFORE MAKING FURTHER COMMENT.
Comment 7 Brion Vibber 2006-03-01 01:39:10 UTC
Ok, action=purge can now be used on an image page to force images to rerender.
(Be careful about caching; make sure it reloads the new image!)
Comment 8 Phrood 2006-03-01 19:43:15 UTC
The current version seems to ignore line widths. For instance,
http://de.wikipedia.org/wiki/Bild:Raytracing.svg should look like
http://de.wikipedia.org/wiki/Bild:Raytracing.png .
Comment 9 Gustav Broberg 2006-03-01 22:58:59 UTC
Regarding #8, I've just submitted a bug about this in librsvg's bug tracker:
http://bugzilla.gnome.org/show_bug.cgi?id=333057.
Before that and other bugs are fixed, there is no upgrade to make, and therefore
this bug should remain "FIXED".

Furthermore there is still a problem with one of the referenced pictures in the
first post:
http://en.wikipedia.org/wiki/Image:DDC_field.svg vs.
http://en.wikipedia.org/wiki/Image:DDC_field.png
(the arrows are too small, I have mailed the librsvg list about this)

I still think this version is much better than the previous one, so thank you
Brion for the upgrade!
Comment 10 Gustav Broberg 2006-03-02 01:29:26 UTC
http://bugzilla.gnome.org/show_bug.cgi?id=333057 is now fixed.
Comment 11 Brion Vibber 2006-03-02 02:34:04 UTC
Do *NOT* reopen this bug ever again. This bug was for a specific
upgrade, which has been performed.

If there are other problems, open a new bug about them.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links