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
Transparent SVG part rendered as white background
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Transparent SVG part rendered as white background
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).
It's worth checking out at the comand line level.
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
snibgo's IM pages: im.snibgo.com
Re: Transparent SVG part rendered as white background
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 !
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 !