I am creating an svg
file using python and its module svgwrite
. Alongside with circles and so on (which works fine) I need to input another svg
file. For that I used:
dwg = svgwrite.Drawing('test.svg', size=(size_x, size_y), profile='tiny')
dwg.add(dwg.image('image.svg', insert=center_to_be, size=size_to_be))
It does what expected except for blurring the imported svg image. Well it is blurred when opened in inkscape. When I open it in chrome, it seems right, though I cannot zoom so much.
However, when I import the image using inkscape, it looks fine.
It seems to be independent on the svg image which is imported, works the same with all images I tried.
Am I doing something wrong? Or is it inkscape
's bug? Is there another way how to include an svg to another svg in python considering that the imported svg is quite complicated and I only need to set its place and size in the resulting svg. I would really need the inkscape compatibility.
Inkscape doesn't have good support for SVG images embedded in SVG images. It shows them as their raster representations, see also https://bugs.launchpad.net/inkscape/+bug/171795 .