View Full Version : Gnome SVG Render not do not the same as inkscape
wfx
March 27th, 2005, 07:16 AM
Hi,
why cant gnome corect render svg images made with inkscape?
Example this:
http://teg.sourceforge.net/data/share/other/allisfulloflove_ubuntu.svg
Should look like this (is indexed):
http://teg.sourceforge.net/data/share/other/allisfulloflove_ubuntu.png
thx
wfx.
Ps: i move all my images to devianART
aaaantoine
October 6th, 2007, 11:42 PM
I understand this is an old thread (ancient by Linux standards!), but I've noticed the same. Gnome renders SVGs differently than Inkscape does. This is either an error with Gnome or with Inkscape.
In particular, Gnome and Inkscape treat blurred objects differently. I wonder which program is in the wrong...
adamorjames
October 7th, 2007, 12:35 AM
I understand this is an old thread (ancient by Linux standards!), but I've noticed the same. Gnome renders SVGs differently than Inkscape does. This is either an error with Gnome or with Inkscape.
In particular, Gnome and Inkscape treat blurred objects differently. I wonder which program is in the wrong...
I hope it's not Inkscape :S
kayosiii
October 8th, 2007, 06:17 PM
Yes Gnome uses librsvg for its SVG rendering - Inkscape uses its own engine. At current the inkscape engine is a little more advanced and uses a few features that librsvg can't render. Support for filters (in this case blur) is one of them.... Firefox is in the same boat (filters will be available in firefox 3)...
Endolith
March 30th, 2009, 08:03 PM
So Firefox and Gnome both use the librsvg engine? That's confusing, because they don't display special colors the same way.
I thought we could use CSS2 system colors (http://www.w3.org/TR/css3-color/#css2-system) ("highlight") to make theme icons that always match your system theme, but it only works inside Firefox. If you click this and view it in Firefox, the folder icon will match your theme, but if you download it, it will just appear black:
http://www.endolith.com/svgiconcolors/user-trash.svg
So I guess it's the responsibility of the program that uses librsvg to get the system color and pass it to librsvg? It doesn't work independently?
Firefox gets the colors from GTK in the nsLookAndFeel.cpp file, but I'm not sure how the two are related otherwise. It would be great if icon authors could just make one icon and have it automatically match any theme color.
smartboyathome
March 31st, 2009, 11:13 AM
So Firefox and Gnome both use the librsvg engine? That's confusing, because they don't display special colors the same way.
I thought we could use CSS2 system colors (http://www.w3.org/TR/css3-color/#css2-system) ("highlight") to make theme icons that always match your system theme, but it only works inside Firefox. If you click this and view it in Firefox, the folder icon will match your theme, but if you download it, it will just appear black:
http://www.endolith.com/svgiconcolors/user-trash.svg
So I guess it's the responsibility of the program that uses librsvg to get the system color and pass it to librsvg? It doesn't work independently?
Firefox gets the colors from GTK in the nsLookAndFeel.cpp file, but I'm not sure how the two are related otherwise. It would be great if icon authors could just make one icon and have it automatically match any theme color.
Firefox doesn't repliceate GTK very well (it isn't GTK, it just tries to make itself blend in with GTK). That is why it looks different.
Endolith
March 31st, 2009, 11:16 AM
Firefox doesn't repliceate GTK very well (it isn't GTK, it just tries to make itself blend in with GTK). That is why it looks different.
Actually, it's the other way around. Firefox gets the colors from GTK and matches the theme, but Gnome doesn't.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.