IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
$im = new Imagick();
$im->setBackgroundColor(new ImagickPixel('transparent'));
$im->readimage($blumsvg);
$im->setImageFormat("png32");
$im->resizeImage(200, 200, imagick::FILTER_LANCZOS, 0);
$im->writeimage($blumpng); //Image with transparent background
$im->clear();
$im->destroy();
I also tried to use with blob function. Same result. Also tried png24 and tried without resize. Every time the same result. (See attachment).
what I do wrong, or is ImageMagick not good for svg conversion?