PNG”); But this result is I was also having this issue on a Linux computer. The same issue occurred on Windows 10. Also, the code is working on Windows, but not on Mac. Convert SVG to PNG with transparent August 04, 2023 — This is a solution to use the magic command and imageMagick to convert transparently SVG (see below) into PNG and save it in a folder, which results in a transparent PNG image. //Make a magic transformation transparentColor = new magic(); transform = TransparentColor →matrix(transparency); TransparentColor = transform→image()→tong(); //Save the file transparencyToPng = image→save('image-transparent.png', transparentToPng, 'Transparent PNG file to JPEG'); //Resize the image to fit the screen and save it again image→resize(1000)→save(image, 'image-transparent.png', transparencyToPng, 'Transparent PNG file to JPEG'); Transparent PNG using magic and imageMagick — Solution 1 Aug 23, 2023 — I have made a test and have found that the magic command does not work well for producing transparent PNG's. It generates image with black background. Image = new magic(); //make transparent image transparentColor = new magic(); transform = TransparentColor →matrix(transparency); image = image→translate(0, 0); //save the file transparentToPng = image→save('transparent-trans.png', transparentToPng, 'Transparent PNG file to GIF'); Transparent PNG using magic and imageMagick — Solution 2 Aug 23, 2023 — I have also made a test to see what magic command is required, and found that to use imageMagick to convert transparent PNG's. But the image does have some black color. Image = new magic(); image→transpose(-100100)→image()→tong(); Magic PHP with transparent SVG image — Solution 3 Feb 25, 2023 — After reading the article, I was looking at the function transform, which does only to transform the shape of a rectangle. I was wondering if transformation could be used to create transparent PNG images.