I am trying to convert an SVG to PNG and keep the transparency, but that does not work. Instead, I get a black background.
This is my code:
$png = new Imagick();
$png->setBackgroundColor(new ImagickPixel("transparent"));
$png->readImageBlob($svg);
$png->setImageFormat("png32");
Thanks in advance!