Page 1 of 1

svg with external feImage inclusion=blank image on convert

Posted: 2007-03-21T00:58:32-07:00
by xytras
Hi,

I searched through the site and found some comments about svg but nothing about this specific problem. (Sorry if I have overseen it.)

I want to convert a svg to a gif.

The svg actually is a container which loads external sources (a "normal" svg works without trouble) :

Code: Select all

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg viewBox = "0 0 274 274" version = "1.1">
    <filter id = "i1">

        <feImage x = "0" y = "0" width = "274" height = "274" result = "x1" xlink:href = "trans.svg"/>
        <feTile result = "tile1"/>
        <feImage x = "10" y = "10" width = "254" height = "254" result = "x2" xlink:href = "701.svg"/>
        <feComposite in = "x2" in2 = "x1"/>
    </filter>
    <g>
        <rect x = "0" y = "0" width = "100%" height = "100%" filter = "url(#i1)"/>
    </g>
</svg>
--------------------->8----------------------------

conversion :

Code: Select all

convert -scale 274 temp.svg temp.gif
or

Code: Select all

convert -density 274 temp.svg temp.gif
return a black "empty" image

I also tried to include the feImage with full path.

Question: me too stupid or bug/missing feature in ImageMagick? ;-)

xy

Re: svg with external feImage inclusion=blank image on convert

Posted: 2007-03-21T06:27:25-07:00
by magick
ImageMagick does not have full support for SVG yet. In the mean-time try the rsvg program.

Re: svg with external feImage inclusion=blank image on convert

Posted: 2007-03-21T07:32:59-07:00
by xytras
thanks for the reply this at least stops me from doing pointless trial and error ;-)
going to combine the svg via php instead... kinda complex but should work as well, rsvg is hard to find and it doesn´t loo like there are windows binaries for me to test

Re: svg with external feImage inclusion=blank image on convert

Posted: 2007-03-21T20:04:46-07:00
by anthony
If you have a near latest IM, try doing

Code: Select all

convert -list format
If this shows RSVG in parenthesis, then your IM uses the RSVG library (it was present when you compiled it). Otherwise it will attempt to us ethe built-in internal SVG to MVG translation, which is incomplete, but slowly getting better.