Page 1 of 1

Transparent SVG part rendered as white background

Posted: 2014-03-05T05:42:16-07:00
by dmaciejak
Hi,

i reported an entry in the MagickWand section at viewtopic.php?f=6&t=25141
but the more i test the more i believe it may be a bug in the coders/svg.c

regards,
david

Re: Transparent SVG part rendered as white background

Posted: 2014-03-05T05:57:41-07:00
by snibgo
It's worth saying what your SVG delegate is (RSVG, Inkscape, whatever).

On your other thread, I'm not sure when you are reading the SVG. From the command line, the background has to be set before reading the SVG (because IM has to tell the delegate what to do).

Code: Select all

convert -verbose -background None sampleText.svg s.png
It's worth checking out at the comand line level.

Re: Transparent SVG part rendered as white background

Posted: 2014-03-05T07:22:24-07:00
by dmaciejak
i was trying with RSVG and inkscape delegates.
I just updated the code as you suggested to move the

PixelSetColor(bg_wand, "none");
MagickSetBackgroundColor(m_wand, bg_wand);

before the MagickReadImage function call, and it works.

Thank you !