convert.exe: no decode delegate for this image format

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
User avatar
mgrant
Posts: 11
Joined: 2011-08-12T22:49:08-07:00
Authentication code: 8675308

convert.exe: no decode delegate for this image format

Post by mgrant »

I'm trying to use ImageMagick on Windows Server 2008R2.

I have ImageMagick-6.7.6-1-Q8-dll.exe installed. It installed without errors (installed as administrator). I cannot get it to convert anything.

C:\Users\mgrant>convert 67444.tif 67444.jpg
convert.exe: no decode delegate for this image format `67444.tif' @ error/constitute.c/ReadImage/532.
convert.exe: missing an image filename `67444.jpg' @ error/convert.c/
ConvertImageCommand/3017.

C:\Users\mgrant>convert -debug configure
2012-03-23T04:52:46-04:00 0:00.001 0.000u 6.7.6 Configure convert.exe[3956]: utility.c/ExpandFilenames/907/Configure
Command line: convert {-debug} {configure}
2012-03-23T04:52:46-04:00 0:00.014 0.000u 6.7.6 Configure convert.exe[3956]: nt-base.c/NTRegistryKeyLookup/1705/Configure
SOFTWARE\ImageMagick\6.7.6\Q:16
2012-03-23T04:52:46-04:00 0:00.031 0.016u 6.7.6 Configure convert.exe[3956]: nt-base.c/NTRegistryKeyLookup/1705/Configure
SOFTWARE\ImageMagick\6.7.6\Q:16
2012-03-23T04:52:46-04:00 0:00.052 0.016u 6.7.6 Configure convert.exe[3956]: locale.c/LoadLocaleList/1092/Configure
Loading locale configure file "C:\Program Files (x86)\ImageMagick-6.7.6-Q8\locale.xml" ...
2012-03-23T04:52:46-04:00 0:00.078 0.016u 6.7.6 Configure convert.exe[3956]: locale.c/LoadLocaleList/1092/Configure
Loading locale configure file "locale.xml" ...
2012-03-23T04:52:46-04:00 0:00.099 0.016u 6.7.6 Configure convert.exe[3956]: nt-base.c/NTRegistryKeyLookup/1705/Configure
SOFTWARE\ImageMagick\6.7.6\Q:16
2012-03-23T04:52:46-04:00 0:00.118 0.016u 6.7.6 Configure convert.exe[3956]: nt-base.c/NTRegistryKeyLookup/1705/Configure
SOFTWARE\ImageMagick\6.7.6\Q:16
2012-03-23T04:52:46-04:00 0:00.254 0.016u 6.7.6 Configure convert.exe[3956]: locale.c/LoadLocaleList/1092/Configure
Loading locale configure file "C:\Program Files (x86)\ImageMagick-6.7.6-Q8\english.xml" ...
2012-03-23T04:52:46-04:00 0:00.289 0.031u 6.7.6 Configure convert.exe[3956]: locale.c/LoadLocaleList/1092/Configure
Loading locale configure file "english.xml" ...
convert.exe: missing an image filename `configure' @ error/convert.c/ConvertImageCommand/3015.

Any ideas what's wrong?

Michael Grant
markmarques
Posts: 88
Joined: 2010-06-29T14:36:09-07:00
Authentication code: 8675308

Re: convert.exe: no decode delegate for this image format

Post by markmarques »

The first command call : " convert 67444.tif 67444.jpg"
reports that ImageMagick does not "know" hot to handle the tif image file ....
So it reports: "no decode delegate for this image format ...
It seems that imageMagick does not know how to identify the TIF subtype ...
TIF format is simply a container.
Please call something like "c:\identify 67444.tif " and post the results ...


The second call : "convert -debug configure" is simply incorrect ...
At the end of the errors shows: "convert.exe: missing an image filename `configure' @ error/convert.c/ConvertImageCommand/3015."
So the correct syntax would be something like : "c:\convert -debug filex.jpg " ...
User avatar
mgrant
Posts: 11
Joined: 2011-08-12T22:49:08-07:00
Authentication code: 8675308

Re: convert.exe: no decode delegate for this image format

Post by mgrant »

C:\Users\mgrant>identify 67444.tif
identify.exe: no decode delegate for this image format `67444.tif' @ error/constitute.c/ReadImage/532.

It's as if it can't find it's DLLs. Is this the DLL to deal with tiff images?

C:\Users\mgrant>dir "C:\Program Files (x86)\ImageMagick-6.7.6-Q8\modules\coders\IM_MOD_RL_tiff_.dll"
Volume in drive C has no label.
Volume Serial Number is 249C-175A

Directory of C:\Program Files (x86)\ImageMagick-6.7.6-Q8\modules\coders

03/17/2012 03:01 PM 39,936 IM_MOD_RL_tiff_.dll
1 File(s) 39,936 bytes
0 Dir(s) 138,102,919,168 bytes free
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: convert.exe: no decode delegate for this image format

Post by Bonzo »

You can see if tif is supported with:

Code: Select all

convert -list Format

convert -list Configure

convert -list Delegate
Have you tried a different tif image - preferably not created from the same source?
User avatar
mgrant
Posts: 11
Joined: 2011-08-12T22:49:08-07:00
Authentication code: 8675308

Re: convert.exe: no decode delegate for this image format

Post by mgrant »

Sorry for some of the line wrapping below. I don't quite know how to read the output of the Delegate list. Tif is in there but not in the first column. Do I need to install some tif library separate from ImageMagick?

C:\Users\mgrant>convert -list Format
Format Module Mode Description
-------------------------------------------------------------------------------

* native blob support
r read support
w write support
+ support for multiple images

C:\Users\mgrant>convert -list Configure

Path: [built-in]

Name Value
-------------------------------------------------------------------------------
NAME ImageMagick

Path: C:\Program Files (x86)\ImageMagick-6.7.6-Q8\configure.xml

Name Value
-------------------------------------------------------------------------------
CC vs10
COPYRIGHT Copyright (C) 1999-2012 ImageMagick Studio LLC
DELEGATES bzlib freetype jpeg jp2 lcms png tiff x11 xml wmf zlib
FEATURES OpenMP
HOST Windows
LIB_VERSION 0x676
LIB_VERSION_NUMBER 6,7,6,1
NAME ImageMagick
RELEASE_DATE 2012-04-01
VERSION 6.7.6
WEBSITE http://www.imagemagick.org

C:\Users\mgrant>convert -list Delegate

Path: C:\Program Files (x86)\ImageMagick-6.7.6-Q8\delegates.xml

Delegate Command
-------------------------------------------------------------------------------
bmp<= show "cmd.exe /C %%SystemRoot%/System32/rundll32.exe "%%ProgramFiles%/Windows Photo Viewer/PhotoViewer.dll", Im
ageView_Fullscreen file:///%i"
bmp<= win "cmd.exe /C %%SystemRoot%/System32/rundll32.exe "%%ProgramFiles%/Windows Photo Viewer/PhotoViewer.dll", Im
ageView_Fullscreen file:///%i"
bmp<= launch "cmd.exe /C %%SystemRoot%/System32/rundll32.exe "%%ProgramFiles%/Windows Photo Viewer/PhotoViewer.dll", Im
ageView_Fullscreen file:///%i"
browse => "cmd /C start http://www.imagemagick.org/"
cgm => "ralcgm -d ps "%i." "%o." "%u."
compress => "|uncompress -c "%i"
dot => "dot -Tps "%i" -o "%o"
dvi => "dvips -q -o "%o" "%i"
edit => "notepad "%o"
emf => "emfplus.exe -format png "%i" "%o"
eps<=>pdf "C:/Program Files (x86)/gs/gs9.04/bin/gswin32c.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxB
itmap=500000000 -sDEVICE=pdfwrite "-sOutputFile=%o" -- "%i"
eps<=>ps "C:/Program Files (x86)/gs/gs9.04/bin/gswin32c.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxB
itmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 -sDEVICE=pswrite "-sOutputFile=%o" -- "%i"
fig => "/usr/X11R6/bin/fig2dev -L ps "%i" "%o"
gplt => "/bin/echo "set size 1.25,0.62 set terminal postscript portrait color solid; set output "%o"; load "%i
"" > "%u";gnuplot %u"
hpg => "hp2xx -q -m eps -f "%o" "%i"
hpgl => "hp2xx -q -m eps -f "%o" "%i"
htm => "html2ps -U -o "%o" "%i"
html => "html2ps -U -o "%o" "%i"
ilbm => "ilbmtoppm "%i" > "%o"
man => "groff -man -Tps "%i" > "%o"
miff<= compress "|compress -c > "%o"
mpeg:decode => "ffmpeg.exe" -v -1 -vframes %S -i "%i" -vcodec pam -an -f rawvideo -y "%u.pam"
pcl:cmyk => "pcl6.exe" -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitT
T=2 "-sDEVICE=pamcmyk32" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s "-sOutputFile=%s" "%s"
pcl:color => "pcl6.exe" -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitT
T=2 "-sDEVICE=ppmraw" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s "-sOutputFile=%s" "%s"
pcl:mono => "pcl6.exe" -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitT
T=2 "-sDEVICE=pbmraw" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s "-sOutputFile=%s" "%s"
pdf<=>ps "C:/Program Files (x86)/gs/gs9.04/bin/gswin32c.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxB
itmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 -sDEVICE=pswrite "-sOutputFile=%o" -- "%i"
pdf<=>eps "C:/Program Files (x86)/gs/gs9.04/bin/gswin32c.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxB
itmap=500000000 -dEPSCrop -sDEVICE=epswrite "-sOutputFile=%o" -- "%i"
pgp => "pgpv -fq "%i"
pnm<= ilbm "ppmtoilbm -24if "%i" > "%o"
pov => "povray "+i"%i"" -D0 +o"%o" +fn%q +w%w +h%h +a -q9 -kfi"%s" -kff"%n" convert -concatenate %o*.png "%o"

ps<=>eps "C:/Program Files (x86)/gs/gs9.04/bin/gswin32c.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxB
itmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 -sDEVICE=epswrite "-sOutputFile=%o" -- "%i"
ps<=>pdf "C:/Program Files (x86)/gs/gs9.04/bin/gswin32c.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxB
itmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 -sDEVICE=pdfwrite "-sOutputFile=%o" -- "%i"
ps:alpha => "C:/Program Files (x86)/gs/gs9.04/bin/gswin32c.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxB
itmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s
"-sOutputFile=%s" "-f%s" "-f%s"
ps:cmyk => "C:/Program Files (x86)/gs/gs9.04/bin/gswin32c.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxB
itmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pamcmyk32" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s
"-sOutputFile=%s" "-f%s" "-f%s"
ps:color => "C:/Program Files (x86)/gs/gs9.04/bin/gswin32c.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxB
itmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pnmraw" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s "-
sOutputFile=%s" "-f%s" "-f%s"
ps:mono => "C:/Program Files (x86)/gs/gs9.04/bin/gswin32c.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxB
itmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pnmraw" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s "-
sOutputFile=%s" "-f%s" "-f%s"
rgba<= rle "pnmtorle -o "%o" -v "%i"
scan => "scanimage -d "%i" > "%o"
shtml => "html2ps -U -o "%o" "%i"
sid => "mrsidgeodecode -if sid -i "%i" -of tif -o "%o" > "%u"
txt<=>ps "enscript -o "%o" "%i"
wmf => "emfplus.exe -format png "%i" "%o"
xcf => "xcftopnm "%i" > "%o"
xps:cmyk => "gxps.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels
=0 -dGridFitTT=2 "-sDEVICE=pamcmyk32" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s "-sOutputFile=%s" "%s"
xps:color => "gxps.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels
=0 -dGridFitTT=2 "-sDEVICE=pnmraw" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s "-sOutputFile=%s" "%s"
xps:mono => "gxps.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels
=0 -dGridFitTT=2 "-sDEVICE=pbmraw" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s "-sOutputFile=%s" "%s"
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: convert.exe: no decode delegate for this image format

Post by Bonzo »

I was expecting a lot more results for "convert -list Format"

Including:
TIFF* TIFF rw+ Tagged Image File Format (LIBTIFF, Version 4.0.0beta7)
TIFF64* TIFF rw- Tagged Image File Format (64-bit) (LIBTIFF, Version 4.0.0beta7)
User avatar
mgrant
Posts: 11
Joined: 2011-08-12T22:49:08-07:00
Authentication code: 8675308

Re: convert.exe: no decode delegate for this image format

Post by mgrant »

Do I also need to install something else for tif to work on windows? I only installed the windows imagemagick package.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: convert.exe: no decode delegate for this image format

Post by Bonzo »

I have run IM on Windows XP and Vista and just downloaded and installed the installer from here: http://www.imagemagick.org/script/binar ... hp#windows
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: convert.exe: no decode delegate for this image format

Post by fmw42 »

You do have tif installed and IM sees it from the convert -list configure

DELEGATES bzlib freetype jpeg jp2 lcms png tiff x11 xml wmf zlib

But since convert -list format shows nothing, then something is wrong with your IM install. Try reinstalling as Bonzo said. Please note that I am not a windows user. So my knowledge is very limited in that regard.

Follow the instructions at: http://www.imagemagick.org/script/binar ... hp#windows
User avatar
mgrant
Posts: 11
Joined: 2011-08-12T22:49:08-07:00
Authentication code: 8675308

Re: convert.exe: no decode delegate for this image format

Post by mgrant »

I have uninstalled and reinstalled several times. I even tried an older version. No luck! Yes, I agree it seems like an installation issue. It seems like something during the installation has to set something (in the registry perhaps?) that tells IM where to find it's DLLs.

I am installing as Administrator (not just "run as admin" but I'm actually logged in as Administrator on the box), I am also running it as Administrator. I wonder if there's some weird UAC issue going on here.

How is IM supposed to find it's delegates?

Honest, I have followed those instructions... several times! There's not much to it, nothing tricky! No errors during the installation at all. It just doesn't work!
User avatar
mgrant
Posts: 11
Joined: 2011-08-12T22:49:08-07:00
Authentication code: 8675308

Re: convert.exe: no decode delegate for this image format

Post by mgrant »

Ok, some more info here. I found a server which had a working IM 6.7.2. I uninstalled it and installed 6.7.6-1 and now I have the exact same message about not able to find the delegate.

It would appear that this is a bug! It's not just my installation.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: convert.exe: no decode delegate for this image format

Post by fmw42 »

Are all your servers Windows-based?

I have not had any trouble installing from source code on my Mac and no one else has reported such problems on unix (or windows to my knowledge). But if you really believe that this is a bug, then report it on the Bugs forum and put a link back this topic from the Users forum.

Identify the IM version and platform(s) you have tested on. Identify the method you used to install (binary or source) and what instructions you used. And of course repeat the command and error messages you get and the fact that convert -list format is empty, but convert -list configure shows your tiff delegate.
User avatar
mgrant
Posts: 11
Joined: 2011-08-12T22:49:08-07:00
Authentication code: 8675308

Re: convert.exe: no decode delegate for this image format

Post by mgrant »

Yes, have 3 servers, all Windows 2008r2. Only tested on this platform.

The version that does not work for me is 6.7.6-1-Q8

I'm installing from the exe on sourceforge.

All I did was click on the exe and install it with all the default options.

C:\Users\mgrant\Documents>convert 84693.tif 84693.jpg
convert.exe: no decode delegate for this image format `84693.tif' @ error/constitute.c/ReadImage/532.
convert.exe: missing an image filename `84693.jpg' @ error/convert.c/ConvertImageCommand/3017.


C:\Users\mgrant\Documents>convert -list format
Format Module Mode Description
-------------------------------------------------------------------------------

* native blob support
r read support
w write support
+ support for multiple images



C:\Users\mgrant\Documents>convert -list configure

Path: [built-in]

Name Value
-------------------------------------------------------------------------------
NAME ImageMagick

Path: C:\Program Files (x86)\ImageMagick-6.7.6-Q8\configure.xml

Name Value
-------------------------------------------------------------------------------
CC vs10
COPYRIGHT Copyright (C) 1999-2012 ImageMagick Studio LLC
DELEGATES bzlib freetype jpeg jp2 lcms png tiff x11 xml wmf zlib
FEATURES OpenMP
HOST Windows
LIB_VERSION 0x676
LIB_VERSION_NUMBER 6,7,6,1
NAME ImageMagick
RELEASE_DATE 2012-04-01
VERSION 6.7.6
WEBSITE http://www.imagemagick.org
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: convert.exe: no decode delegate for this image format

Post by fmw42 »

Perhaps you should try installing with the exe from http://www.imagemagick.org/script/binar ... hp#windows and follow the instructions there. Maybe sourceforge has a bad exe file.

If that does not work then repost this to the Bugs forum at viewforum.php?f=3
User avatar
mgrant
Posts: 11
Joined: 2011-08-12T22:49:08-07:00
Authentication code: 8675308

Re: convert.exe: no decode delegate for this image format

Post by mgrant »

No, it's definitely the same. I'll head over to the bug forum.

Thanks for your help anyway.
Post Reply