Image is unable to load any file, exception no decode delegate for this image format
Posted: 2017-02-16T03:09:09-07:00
Hello I have just started with IM++ and I am stuck with my first program.
Here is what I got from sample code -
int _tmain(int argc, _TCHAR* argv[])
{
InitializeMagick("");
Image image;
try
{
image.read("'test.pdf'");
image.write( "testImageMagick.jpg" );
}
catch( Exception &error_ )
{
cout << "Caught exception: " << error_.what() << endl;
}
return 0;
}
I am using visual studio V9.0 on Windows-7 (64 bit) PC and I have installed ImageMagick-7.0.4-Q16 and GhostScript (gs9.16) on my pc.
when I run above code, read throw exception and details are -
"Caught exception: sampleIM.exe: no decode delegate for this image format `' @ error/constitute.c/ReadImage/509"
Please someone can suggest what is going wrong ?
Here is what I got from sample code -
int _tmain(int argc, _TCHAR* argv[])
{
InitializeMagick("");
Image image;
try
{
image.read("'test.pdf'");
image.write( "testImageMagick.jpg" );
}
catch( Exception &error_ )
{
cout << "Caught exception: " << error_.what() << endl;
}
return 0;
}
I am using visual studio V9.0 on Windows-7 (64 bit) PC and I have installed ImageMagick-7.0.4-Q16 and GhostScript (gs9.16) on my pc.
when I run above code, read throw exception and details are -
"Caught exception: sampleIM.exe: no decode delegate for this image format `' @ error/constitute.c/ReadImage/509"
Please someone can suggest what is going wrong ?