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
In Windows, the directory separator is backslash \ not forward slash / , so try that. Do you have permission to write to the root of C:? (Even if you do, it's not a good idea.)