SVG has white background instead of transparent

MagickWand for PHP is an object-oriented PHP interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning MagickWand for PHP.
Post Reply
Posts: 1
Joined: 2012-08-05T13:47:48-07:00
Authentication code: 67789

SVG has white background instead of transparent

Post by Jedateach »

I'm getting a white background whenever I convert svg to png using php magickwand. Is this a bug?

php magickwand version: 1.0.8
ImageMagick version: 6.7.8-3

Code: Select all

$wand = NewMagickWand();
$transparentColor = NewPixelWand();
PixelSetColor($transparentColor, 'transparent');
MagickSetBackgroundColor($wand, $transparentColor);

header('Content-Type: image/png');
Related: ... magickwand
Post Reply