Getting MagickPNGErrorHandler/1711
Posted: 2017-09-17T00:37:41-07:00
Hi!
I'm trying to test a simple program but when I use the method Image::write() I get an error:
WriteBlob Failed "C:/image.png" @ error/png.c/MagickPNGErrorHandler/1711
My code:
My platform is Win64.
Can anybody help me with this?
I'm trying to test a simple program but when I use the method Image::write() I get an error:
WriteBlob Failed "C:/image.png" @ error/png.c/MagickPNGErrorHandler/1711
My code:
Code: Select all
InitializeMagick("");
try
{
Image image(Geometry(2480, 3508), Color::Color(1, 1, 1, 1));
image.write("C:/image.png");
}
catch (Exception &error_)
{
std::printf("Caught exception: %s\n", error_.what());
return 1;
}
Can anybody help me with this?