Transparent SVG part rendered as white background

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
dmaciejak
Posts: 4
Joined: 2014-03-04T07:59:13-07:00
Authentication code: 6789

Transparent SVG part rendered as white background

Post 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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Transparent SVG part rendered as white background

Post 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.
snibgo's IM pages: im.snibgo.com
dmaciejak
Posts: 4
Joined: 2014-03-04T07:59:13-07:00
Authentication code: 6789

Re: Transparent SVG part rendered as white background

Post 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 !
Post Reply