svg with external feImage inclusion=blank image on convert

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
xytras

svg with external feImage inclusion=blank image on convert

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

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

Post by magick »

ImageMagick does not have full support for SVG yet. In the mean-time try the rsvg program.
xytras

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

Post 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
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

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

Post 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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply