In fact, I get this error trying to load any of my SVGs. I used Inkscape to create them. Loading PNGs works fine. Using the convert utility to convert SVG to PNG works fine as well. Relevant code:Failed to load image "my-svg.svg". Reason : Image not of any known type, or corrupt
Code: Select all
Magick::Image mimage;
try {
mimage.read("my-svg.svg");
mimage.write("my-png.png");
}
catch (std::exception &error_) {
std::cout << "ERROR: " << error_.what() << std::endl;
return 1;
}
EDIT: I am using Arch Linux x86_64. My ImageMagick version is 6.5.8-5.