rsvg doesn't render linked images

Posted by colinmarc on Stack Overflow See other posts from Stack Overflow or by colinmarc
Published on 2010-06-02T21:11:16Z Indexed on 2010/06/08 7:22 UTC
Read the original article Hit count: 262

Filed under:
|

I use the python rsvg bindings to render an svg image into cairo and save to file, which mostly works. But if the svg file contains a linked image, like so:

<image href="static/usrimgs/tmpDtIKpx.png" x="10" y="10" width="600px" height="400px"></image>

the image doesn't show up in the final file (the rest of the svg renders just fine). The relative path is correct based on where the script is running, but I'm guessing there's some problem with the fact that it would normally be a relative URL, not a relative filepath. How do I get around this?

© Stack Overflow or respective owner

Related posts about svg

Related posts about librsvg