I'm new to ImageMagick, and I've been trying to use the C++ API to convert an SVG file to a PNG. The problem is that the resulting PNG file's background always defaults to white. I've been searching for solutions for this, but all I find is the solution using the comand line
Code: Select all
convert -background none svg_image.svg png_image.png
Code: Select all
Magick::Image svgImage(svgFilePath);
svgImage.magick("png");
Magick::Blob blob;
svgImage.write(&blob);
Thanks!