I\'me trying to use ImageMagick to convert SVG files to PNG.
The SVG file is as follows:
For me, installing gtk3 (or probably more specifically "shared-mime-info" helped. (and re-installing rsvg afterwards AND using absolute "file:///" uri for href AND having image file in same directory as svg file)
More info (I'm still confused what exactly is going on):
I think the problem is not with rsvg directly, but with gdk-pixbuf(2) library
I found the place in the code where gdk-pixbuf is used to load the image. I confirmed (using printf debuggin) that it doesn't throw an error (seems to load pixbuf just fine) even if the uri in the href does not point to a file.
the gtk3 dependency should only be necessary for rsvg-view-3 tool, not for rsvg, but it seems to be (or one of the dependencies that got pulled in when I installed gtk3)
It still works even after uninstalling gtk3. It even still works after uninstalling gtk3, then rebuilding rsvg (./configure detects: "gtk3: no"), so I figure it must have to do with one of the dependencies that got pulled when I installed gtk3:
atk-2.10.0-1-i686
(I'm leaving these here in case it's not the lib I identified in the end)
So I tried removing these deps in groups and rebuilding and testing in between. Turns out the one making it work is...
* shared-mime-info