Solution for "No Delegate for format"

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

Do we need the announcement of special library directories in the installation process?

yes
2
67%
no
1
33%
 
Total votes: 3

seboeh

Solution for "No Delegate for format"

Post by seboeh »

Hello at all,

"No encoded delegate for image format" or "No decoded delegate for image format" is an error which seems to occur very often.

I would be happy, if it would be possible to mention that the directory for the delegates, which have to be exactly the directory at the installation. I think many user expect that the library files are handeled without any directory structure. This concerns especially the windows libraries.

This information in front of the installation process would be more helpfull for many developers. Of course developers could get the information by itself if we see the directory structure, but they can not be shure that the libaries are not copied in the system directory. That confuse a littel bit.

Thanks a lot, seboeh
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Solution for "No Delegate for format"

Post by magick »

Add -debug configure to your command line and it will tell you all the paths that were polled looking for an ImageMagick delegate:
  • -> convert -debug configure image.dat image.png
    2008-11-03T09:39:09-05:00 0:01 0.000u 6.4.5 Configure convert[23938]: utility.c/unknown/808/Configure
    Command line: convert {-debug} {configure} {image.dat} {image.png}
    2008-11-03T09:39:09-05:00 0:01 0.000u 6.4.5 Configure convert[23938]: configure.c/unknown/528/Configure
    Searching for configure file: "/usr/local/share/ImageMagick-6.4.5/config/coder.xml"
    2008-11-03T09:39:09-05:00 0:01 0.000u 6.4.5 Configure convert[23938]: configure.c/unknown/528/Configure
    Searching for configure file: "/usr/local/lib/ImageMagick-6.4.5/config/coder.xml"
    2008-11-03T09:39:09-05:00 0:01 0.000u 6.4.5 Configure convert[23938]: configure.c/unknown/528/Configure
    Searching for configure file: "/usr/local/share/doc/ImageMagick-6.4.5/coder.xml"
    2008-11-03T09:39:09-05:00 0:01 0.000u 6.4.5 Configure convert[23938]: configure.c/unknown/528/Configure
    Searching for configure file: "/usr/local/share/ImageMagick-6.4.5/coder.xml"
    2008-11-03T09:39:09-05:00 0:01 0.000u 6.4.5 Configure convert[23938]: configure.c/unknown/528/Configure
    Searching for configure file: "/home/cristy/.magick/coder.xml"
    2008-11-03T09:39:09-05:00 0:01 0.000u 6.4.5 Configure convert[23938]: configure.c/unknown/528/Configure
    Searching for configure file: "coder.xml"
    2008-11-03T09:39:09-05:00 0:01 0.000u 6.4.5 Configure convert[23938]: coder.c/unknown/638/Configure
    Loading coder configuration file "/usr/local/share/ImageMagick-6.4.5/config/coder.xml" ...
    2008-11-03T09:39:09-05:00 0:01 0.000u 6.4.5 Configure convert[23938]: configure.c/unknown/528/Configure
    Searching for configure file: "/usr/local/share/ImageMagick-6.4.5/config/magic.xml"
    2008-11-03T09:39:09-05:00 0:01 0.000u 6.4.5 Configure convert[23938]: configure.c/unknown/528/Configure
    Searching for configure file: "/usr/local/lib/ImageMagick-6.4.5/config/magic.xml"
    2008-11-03T09:39:09-05:00 0:01 0.000u 6.4.5 Configure convert[23938]: configure.c/unknown/528/Configure
    Searching for configure file: "/usr/local/share/doc/ImageMagick-6.4.5/magic.xml"
    2008-11-03T09:39:09-05:00 0:01 0.000u 6.4.5 Configure convert[23938]: configure.c/unknown/528/Configure
    Searching for configure file: "/usr/local/share/ImageMagick-6.4.5/magic.xml"
    2008-11-03T09:39:09-05:00 0:01 0.000u 6.4.5 Configure convert[23938]: configure.c/unknown/528/Configure
    Searching for configure file: "/home/cristy/.magick/magic.xml"
    2008-11-03T09:39:09-05:00 0:01 0.000u 6.4.5 Configure convert[23938]: configure.c/unknown/528/Configure
    Searching for configure file: "magic.xml"
    2008-11-03T09:39:09-05:00 0:01 0.000u 6.4.5 Configure convert[23938]: magic.c/unknown/681/Configure
    Loading magic configure file "/usr/local/share/ImageMagick-6.4.5/config/magic.xml" ...
    2008-11-03T09:39:09-05:00 0:01 0.010u 6.4.5 Configure convert[23938]: configure.c/unknown/528/Configure
    Searching for configure file: "/usr/local/share/ImageMagick-6.4.5/config/delegates.xml"
    2008-11-03T09:39:09-05:00 0:01 0.010u 6.4.5 Configure convert[23938]: configure.c/unknown/528/Configure
    Searching for configure file: "/usr/local/lib/ImageMagick-6.4.5/config/delegates.xml"
    2008-11-03T09:39:09-05:00 0:01 0.010u 6.4.5 Configure convert[23938]: configure.c/unknown/528/Configure
    Searching for configure file: "/usr/local/share/doc/ImageMagick-6.4.5/delegates.xml"
    2008-11-03T09:39:09-05:00 0:01 0.010u 6.4.5 Configure convert[23938]: configure.c/unknown/528/Configure
    Searching for configure file: "/usr/local/share/ImageMagick-6.4.5/delegates.xml"
    2008-11-03T09:39:09-05:00 0:01 0.010u 6.4.5 Configure convert[23938]: configure.c/unknown/528/Configure
    Searching for configure file: "/home/cristy/.magick/delegates.xml"
    2008-11-03T09:39:09-05:00 0:01 0.010u 6.4.5 Configure convert[23938]: configure.c/unknown/528/Configure
    Searching for configure file: "delegates.xml"
    2008-11-03T09:39:09-05:00 0:01 0.010u 6.4.5 Configure convert[23938]: delegate.c/unknown/1177/Configure
    Loading delegate configuration file "/usr/local/lib/ImageMagick-6.4.5/config/delegates.xml" ...
    2008-11-03T09:39:09-05:00 0:01 0.010u 6.4.5 Configure convert[23938]: locale.c/unknown/779/Configure
    Loading locale configure file "/usr/local/lib/ImageMagick-6.4.5/config/locale.xml" ...
    2008-11-03T09:39:09-05:00 0:01 0.010u 6.4.5 Configure convert[23938]: locale.c/unknown/779/Configure
    Loading locale configure file "/usr/local/lib/ImageMagick-6.4.5/config/english.xml" ...
    convert: no decode delegate for this image format `image.dat'.
    convert: missing an image filename `image.png'.
swiss_knife

Re: Solution for "No Delegate for format"

Post by swiss_knife »

OK, but what do you make out of this output ?

I am trying to install ImageMagick on Ubuntu 9.04 64 bits. I followed

http://www.helioviewer.org/wiki/index.p ... mageMagick

ImageMagick 6.6.5-4 got correctly installed

but no delegates got installed when I try the procedure for
jpegsrc.v8b.tar.gz
and
jasper-1.900.1.zip

I keep getting only "DELEGATES zlib" when I do "convert -list configure" and I am not sure how to interpret the output when I do:
"convert -debug configure ~/tmp/4362323046_96a3c2c837.jpg toto.jpg"

Do you know if this is supposed to work ? Thank you for the help.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Solution for "No Delegate for format"

Post by fmw42 »

ImageMagick 6.6.5-4 got correctly installed

but no delegates got installed when I try the procedure for
jpegsrc.v8b.tar.gz
and
jasper-1.900.1.zip
'


I believe that you have to install the delegates before installing IM or reinstall IM after you have installed the delegates. Also be sure the delegates got installed correctly.

convert -list configure

see the line starting with DELEGATES to tell you which delegates IM can find.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Solution for "No Delegate for format"

Post by fmw42 »

The poll needs a bit more explanation of "announcement". Is that just a note in the docs or something during the installation?
swiss_knife

Re: Solution for "No Delegate for format"

Post by swiss_knife »

"convert -debug" basically list xml files, but how one knows if the delegates are not found because there was a delegate install problem or the problem is Magick not finding them ?
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Solution for "No Delegate for format"

Post by Bonzo »

The whole Imagemagick error reporting is confusing or lacking as you can get an error like:
convert: missing an image filename `Output.png'.
But this can actualy be caused by something else for instance the input image is missing and not something wrong with the image you are saving!
Post Reply