Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: NoDecodeDelegateForThisImageFormat loading texture Assimp/ImageMagick

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2014

    NoDecodeDelegateForThisImageFormat loading texture Assimp/ImageMagick

    I am trying to use ImageMagick to load a Mesh's (made in Blender) texture from using the ASSIMP library. The Mesh has a single material and a single texture.

    I was attempting to follow two tutorials: Tutorial38 and Tutorial22.

    The below code block is where it has problems;

    Code :
        bool Texture::Load()
            try {
                m_pImage = new Magick::Image(m_fileName); /* RIGHT HERE IT OCCURS */
                m_pImage->write(&m_blob, "RGBA");
            catch (Magick::Error& Error) {
                std::cout << "Error loading texture '" << m_fileName << "': " << Error.what() << std::endl;
                return false;
            glGenTextures(1, &m_textureObj);
            glBindTexture(m_textureTarget, m_textureObj);
            glTexImage2D(m_textureTarget, 0, GL_RGBA, m_pImage->columns(), m_pImage->rows(), 0, GL_RGBA, GL_UNSIGNED_BYTE,;
            glTexParameterf(m_textureTarget, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
        	glTexParameterf(m_textureTarget, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
            return true;

    It almost immediately exits the Try-Catch with the current error:

    "Error loading texture, 'Resources/white.png': myproject.exe: NoDecodeDelegateForThisImageFormat 'Resources/white.png' error/constitute.c/ReadImage/550

    As far as I can determine ImageMagick is installed properly, I've attempted numerous times to compile it by hand but I always end up with Unresolved External errors with the new libs (they seem to be 2-3 mb bigger than the ones included with the Project).

    The versions attempted:

    ImageMagick-windows zip from their instructions page.

    A big problem I have when attempting the self installer binaries is that they don't include both the Release Candidate AND the Debug lib's, when the code requires both; while the source versions I compile as mentioned aren't correct and result in Unresolved External errors or don't otherwise clearly deposit their Include and Lib folders.

    I've contacted the developer of the tutorial but the only thing he's said so far is that I might have the wrong version of ImageMagick installed and is incompatible with the version he includes... Without saying which version the correct one would be.

  2. #2
    Junior Member Newbie
    Join Date
    Feb 2014
    Solved it, had to switch the compiler to Release mode.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts