php magickwand version: 1.0.8
ImageMagick version: 6.7.8-3
Code: Select all
$wand = NewMagickWand();
$transparentColor = NewPixelWand();
MagickReadImage($wand,"RAID_5.svg");
PixelSetColor($transparentColor, 'transparent');
MagickSetBackgroundColor($wand, $transparentColor);
MagickSetImageFormat($wand,"PNG24");
header('Content-Type: image/png');
MagickEchoImageBlob($wand);