Page 1 of 1

NoDecodeDelegateForThisImageFormat

Posted: 2013-10-30T20:25:55-07:00
by khanhhh90
I got as the same error as in this thread viewtopic.php?f=1&t=9969#wrap, but they don't show exactly how to resolve it.

I got this error during loading a PCX image, and other formats such as PNG, JPEG.

My code is as following:
try {
m_pImage = new Magick::Image(m_fileName); // I got the error here
m_pImage->write(&m_blob, "RGBA");
}
catch (Magick::Error& Error) {
std::cout << "Error loading texture '" << m_fileName << "': " << Error.what() << std::endl;
return false;
}

And the error description I got is "NotDecodeDelegateFOrthisImageFormat ..constitute.c/ReadImage/552""

And this is the information of ImageMagick in my machine:

Command line: convert -list configure
- Delegate: bzlib, freetype, jpeg, jp2, lcms, png, tiff, x11, xml, wfm, zlib
- Features: OpenMP
- Host: WIndows
- Lib_version: 0x687

Command line: Identify -list format ==> it contains PCX, PNG, JPEG... fomats

I also tried to use the command: convert filename.pcx filename.png. ==> It did well, and I got the png image

I'm desperate now. I really need your help!!