NotDecodeDelegateFOrthisImageFormat

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
khanhhh90
Posts: 3
Joined: 2013-10-28T00:38:30-07:00
Authentication code: 6789

NotDecodeDelegateFOrthisImageFormat

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:

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!!
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: NotDecodeDelegateFOrthisImageFormat

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