NoDecodeDelegateForThisImageFormat

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
khanhhh90
Posts: 3
Joined: 2013-10-28T00:38:30-07:00
Authentication code: 6789

NoDecodeDelegateForThisImageFormat

Post 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!!
Post Reply