Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. ImageMagick++ - ErrorMissingDelegate at memorry location

ImageMagick++ - ErrorMissingDelegate at memorry location

Scheduled Pinned Locked Moved C / C++ / MFC
helpcsharpasp-netvisual-studio
9 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rajeev Raina
    wrote on last edited by
    #1

    I have downloaded and installed ImageMagick++ from http://www.imagemagick.org/Magick++/. I am using Windows7 32 bit and Visual Studio 2008. I want to use the ImageMagick in an existing project. I made the required/suggested changes to my project properties like adding dependencies etc. I added three libraries in the additional dependencies (CORE_RL_Magick++_.lib,CORE_RL_MagickCore_.lib and CORE_RL_MagickWand_.lib I added Magick++.h header file and using namespace Magick Then Magick:: Image image (No error) image.read("5.png") throws an error "ErrorMissingDelegate at memorry location ....". I tried other image formats also, but same error. Please help.

    J L 2 Replies Last reply
    0
    • R Rajeev Raina

      I have downloaded and installed ImageMagick++ from http://www.imagemagick.org/Magick++/. I am using Windows7 32 bit and Visual Studio 2008. I want to use the ImageMagick in an existing project. I made the required/suggested changes to my project properties like adding dependencies etc. I added three libraries in the additional dependencies (CORE_RL_Magick++_.lib,CORE_RL_MagickCore_.lib and CORE_RL_MagickWand_.lib I added Magick++.h header file and using namespace Magick Then Magick:: Image image (No error) image.read("5.png") throws an error "ErrorMissingDelegate at memorry location ....". I tried other image formats also, but same error. Please help.

      J Offline
      J Offline
      Jochen Arndt
      wrote on last edited by
      #2

      Would be good to know the complete error message. A quick search in ImageMagick/constitute.c at master · ImageMagick/ImageMagick · GitHub[^] shows that the ReadImage function reports delegate errors with "NoEncodeDelegateForThisImageFormat". Searching this in the net gives the answer: You have to install delegates for the image formats to be used.

      R 1 Reply Last reply
      0
      • J Jochen Arndt

        Would be good to know the complete error message. A quick search in ImageMagick/constitute.c at master · ImageMagick/ImageMagick · GitHub[^] shows that the ReadImage function reports delegate errors with "NoEncodeDelegateForThisImageFormat". Searching this in the net gives the answer: You have to install delegates for the image formats to be used.

        R Offline
        R Offline
        Rajeev Raina
        wrote on last edited by
        #3

        Thanks for the reply. The complete message is Magick::ErrorMissingDelegate at memory location 0x0012fafc. I can understand there are some missing delegates but I really do not understand how do I have to install them. Regards

        J 1 Reply Last reply
        0
        • R Rajeev Raina

          Thanks for the reply. The complete message is Magick::ErrorMissingDelegate at memory location 0x0012fafc. I can understand there are some missing delegates but I really do not understand how do I have to install them. Regards

          J Offline
          J Offline
          Jochen Arndt
          wrote on last edited by
          #4

          I have only used ImageMagick on Linux so far and never build it (used the distribution binaries). You should read the provided documentation: Advanced Windows Installation[^] Read the "ENVIRONMENT VARIABLES" section and check if your build has created the required modules. If not, check the build configuration. To check if it works in general, use an image format that does not require a delegate like GIF or JPEG. If you are still stuck you might get better help in one of the ImageMagick Forums[^] (or even find the solution in an existing thread or FAQ there).

          R 1 Reply Last reply
          0
          • J Jochen Arndt

            I have only used ImageMagick on Linux so far and never build it (used the distribution binaries). You should read the provided documentation: Advanced Windows Installation[^] Read the "ENVIRONMENT VARIABLES" section and check if your build has created the required modules. If not, check the build configuration. To check if it works in general, use an image format that does not require a delegate like GIF or JPEG. If you are still stuck you might get better help in one of the ImageMagick Forums[^] (or even find the solution in an existing thread or FAQ there).

            R Offline
            R Offline
            Rajeev Raina
            wrote on last edited by
            #5

            Thanks again. I am also using the Windows Binaries. I tried with GIF and JPEG but same error message.

            J 1 Reply Last reply
            0
            • R Rajeev Raina

              Thanks again. I am also using the Windows Binaries. I tried with GIF and JPEG but same error message.

              J Offline
              J Offline
              Jochen Arndt
              wrote on last edited by
              #6

              Have you initialised the library?

              Magick++[^]:

              Note, under Windows (and possibly the Mac) it may be necessary to initialize the ImageMagick library prior to using the Magick++ library. This initialization is performed by passing the path to the ImageMagick DLLs (assumed to be in the same directory as your program) to the InitializeMagick() function call. This is commonly performed by providing the path to your program (argv[0]) as shown in the following example: int main( int argc, char ** argv) { InitializeMagick(*argv); ...

              and copied the DLLs to the path of your executable (Debug resp. Release) or used the path to the DLLs?

              R 1 Reply Last reply
              0
              • J Jochen Arndt

                Have you initialised the library?

                Magick++[^]:

                Note, under Windows (and possibly the Mac) it may be necessary to initialize the ImageMagick library prior to using the Magick++ library. This initialization is performed by passing the path to the ImageMagick DLLs (assumed to be in the same directory as your program) to the InitializeMagick() function call. This is commonly performed by providing the path to your program (argv[0]) as shown in the following example: int main( int argc, char ** argv) { InitializeMagick(*argv); ...

                and copied the DLLs to the path of your executable (Debug resp. Release) or used the path to the DLLs?

                R Offline
                R Offline
                Rajeev Raina
                wrote on last edited by
                #7

                Thanks for the reply. Yes, it is as advised by you. I am not even able to run the demo project (Button) provided with the Windows Binary Installer.

                J 1 Reply Last reply
                0
                • R Rajeev Raina

                  Thanks for the reply. Yes, it is as advised by you. I am not even able to run the demo project (Button) provided with the Windows Binary Installer.

                  J Offline
                  J Offline
                  Jochen Arndt
                  wrote on last edited by
                  #8

                  Then I'm not able to help anymore. I can only suggest to check your installation (all required modules present) and the setup (e.g. all required pathes set).

                  1 Reply Last reply
                  0
                  • R Rajeev Raina

                    I have downloaded and installed ImageMagick++ from http://www.imagemagick.org/Magick++/. I am using Windows7 32 bit and Visual Studio 2008. I want to use the ImageMagick in an existing project. I made the required/suggested changes to my project properties like adding dependencies etc. I added three libraries in the additional dependencies (CORE_RL_Magick++_.lib,CORE_RL_MagickCore_.lib and CORE_RL_MagickWand_.lib I added Magick++.h header file and using namespace Magick Then Magick:: Image image (No error) image.read("5.png") throws an error "ErrorMissingDelegate at memorry location ....". I tried other image formats also, but same error. Please help.

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #9

                    Hi, Sounds like you are compiling ImageMagick without any image libraries.

                    Rajeev Raina wrote:

                    Magick:: Image image (No error)image.read("5.png") throws an error "ErrorMissingDelegate at memorry location ....".I tried other image formats also, but same error.

                    LIBPNG[^] LIBJPEG[^] LibTIFF[^] Many others... Then recompile with: ./configure --with-png=yes --with-jpeg=yes --with-tiff=yes It can be alot of work... you might be better off downloading a precompiled binary: Install from Binary Distribution @ ImageMagick[^] Best Wishes, -David Delaune

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups