Page 1 of 1

NotDecodeDelegateFOrthisImageFormat

Posted: 2013-10-31T01:10:23-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:

Code: Select all

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

My guess is my program doesn't know where to load ImageMagick DLL, and delegate DLL, but I configure environment variables such as MAGIC_HOME, MAGICK_CODER_MODULE_PATH, MAGICK_CODER_FILTER_PATH. It still doesn't work, I got the same error.
I'm desperate now. I really need your help!!

Re: NotDecodeDelegateFOrthisImageFormat

Posted: 2013-10-31T05:53:22-07:00
by magick
Type
  • export MAGICK_DEBUG=configure
Next run your program. The debugging output tells you where ImageMagick is looking for its configuration files and coder modules. Make sure these paths exist and that they do not have permission problems.