convert gif to jgp: 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?".
Post Reply
addi681

convert gif to jgp: no decode delegate for this image format

Post by addi681 »

Hello,

I've seen a lot of articles dealing with this error but I didn't find an answer to my problem.
Yesterday I installed ImageMagick on a Windows-System.
If I try to convert a gif to jpg-File it works fine in a DOS-Box.

g:\imagemagick\convert.exe f:\onlinebilder\artikel\ELTKONTOR\FARBBILDER\411756.gif 411756.jpg

But if I try this within a Cachè-Script

S Queue="g:\imagemagick\convert.exe F:\onlinebilder\artikel\ELTKONTOR\FARBBILDER\411756.gif F:\onlinebilder\artikel\ELTKONTOR\FARBBILDER\411756.jpg"
O Queue:"qr":3 Q:'$T
S I=0
F U Queue R A:300 Q:$zeof Q:'$T F I=I+1 S A(I)=A
C Queue

I get the following messages

A(1)="convert.exe: no decode delegate for this image format `F:\onlinebilder\artikel\ELTKONTOR\FARBBILDER\411756.gif'."
A(2)="convert.exe: missing an image filename `F:\onlinebilder\artikel\ELTKONTOR\FARBBILDER\411756.jpg'."

I spent several hours with this problem - may be there is anyone who can help me.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: convert gif to jgp: no decode delegate for this image format

Post by anthony »

You just do not have the appropriate delegate (DLL) libraries.

These are optional, and are only needed if you actually want to handle that specific format. Check the IM web site for more deatils about the delegate libraries downloads.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

Re: convert gif to jgp: no decode delegate for this image format

Post by el_supremo »

Perhaps the two commands are running in different environments.
Try adding -debug configure to both commands.
I presume that the output for the script will be different than for the DOS command and that might tell you what is wrong.

Pete
addi681

Re: convert gif to jgp: no decode delegate for this image format

Post by addi681 »

Hello Pete,

I tried what you had suggested, here are the two outputs:
this is the one via script:

A(1)="2008-03-18T09:46:17+01:00 0:01 0.000u 6.3.9 Configure convert.exe[2444]: nt-base.c/NTRegistryKeyLookup/1612/Configure"
A(2)=" SOFTWARE\ImageMagick\6.3.9\Q:16"
A(3)="2008-03-18T09:46:17+01:00 0:01 0.000u 6.3.9 Configure convert.exe[2444]: utility.c/ExpandFilenames/809/Configure"
A(4)=" Command line: d:\imagemagick\convert.exe {-debug} {configure} {F:\onlinebilder\artikel\ELTKONTOR\FARBBILDER\411756.gif} {F:\onlinebilder\artikel\ELTKONTOR\FARBBILDER\411756.jpg}"
A(5)="2008-03-18T09:46:17+01:00 0:01 0.000u 6.3.9 Configure convert.exe[2444]: nt-base.c/NTRegistryKeyLookup/1612/Configure"
A(6)=" SOFTWARE\ImageMagick\6.3.9\Q:16"
A(7)="2008-03-18T09:46:17+01:00 0:01 0.000u 6.3.9 Configure convert.exe[2444]: nt-base.c/NTRegistryKeyLookup/1612/Configure"
A(8)=" SOFTWARE\ImageMagick\6.3.9\Q:16"
A(9)="2008-03-18T09:46:17+01:00 0:01 0.000u 6.3.9 Configure convert.exe[2444]: nt-base.c/NTRegistryKeyLookup/1612/Configure"
A(10)=" SOFTWARE\ImageMagick\6.3.9\Q:16"
A(11)="2008-03-18T09:46:17+01:00 0:01 0.000u 6.3.9 Configure convert.exe[2444]: configure.c/GetConfigureOptions/482/Configure"
A(12)=" Searching for configure file: "C:\Dokumente und Einstellungen\Default User.WINNT\magic.xml""
A(13)="2008-03-18T09:46:17+01:00 0:01 0.000u 6.3.9 Configure convert.exe[2444]: configure.c/GetConfigureOptions/482/Configure"
A(14)=" Searching for configure file: "d:\imagemagick\magic.xml""
A(15)="2008-03-18T09:46:17+01:00 0:01 0.000u 6.3.9 Configure convert.exe[2444]: configure.c/GetConfigureOptions/482/Configure"
A(16)=" Searching for configure file: "magic.xml""
A(17)="2008-03-18T09:46:17+01:00 0:01 0.000u 6.3.9 Configure convert.exe[2444]: magic.c/LoadMagicList/678/Configure"
A(18)=" Loading magic map "d:\imagemagick\magic.xml" ..."
A(19)="2008-03-18T09:46:17+01:00 0:01 0.000u 6.3.9 Configure convert.exe[2444]: magic.c/LoadMagicList/678/Configure"
A(20)=" Loading magic map "magic.xml" ..."
A(21)="2008-03-18T09:46:17+01:00 0:01 0.016u 6.3.9 Configure convert.exe[2444]: nt-base.c/NTRegistryKeyLookup/1612/Configure"
A(22)=" SOFTWARE\ImageMagick\6.3.9\Q:16"
A(23)="2008-03-18T09:46:17+01:00 0:01 0.016u 6.3.9 Configure convert.exe[2444]: nt-base.c/NTRegistryKeyLookup/1612/Configure"
A(24)=" SOFTWARE\ImageMagick\6.3.9\Q:16"
A(25)="convert.exe: no decode delegate for this image format `F:\onlinebilder\artikel\ELTKONTOR\FARBBILDER\411756.gif'."
A(26)="convert.exe: missing an image filename `F:\onlinebilder\artikel\ELTKONTOR\FARBBILDER\411756.jpg'."


and this is the one at the DOS-Box when the convert is successfull

2008-03-18T09:49:48+01:00 0:01 0.000u 6.3.9 Configure convert.exe[504]: utility.c/ExpandFilenames/809/Configure
Command line: g:\imagemagick\convert.exe {-debug} {configure} {F:\onlinebilder\artikel\ELTKONTOR\FARBBILDER\411756.gif
} {F:\onlinebilder\artikel\ELTKONTOR\FARBBILDER\411756.jpg}
2008-03-18T09:49:48+01:00 0:01 0.000u 6.3.9 Configure convert.exe[504]: nt-base.c/NTRegistryKeyLookup/1612/Configure
SOFTWARE\ImageMagick\6.3.9\Q:16
2008-03-18T09:49:48+01:00 0:01 0.000u 6.3.9 Configure convert.exe[504]: nt-base.c/NTRegistryKeyLookup/1630/Configure
CoderModulesPath
2008-03-18T09:49:48+01:00 0:01 0.016u 6.3.9 Configure convert.exe[504]: nt-base.c/NTRegistryKeyLookup/1612/Configure
SOFTWARE\ImageMagick\6.3.9\Q:16
2008-03-18T09:49:48+01:00 0:01 0.016u 6.3.9 Configure convert.exe[504]: nt-base.c/NTRegistryKeyLookup/1630/Configure
ConfigurePath
2008-03-18T09:49:48+01:00 0:01 0.016u 6.3.9 Configure convert.exe[504]: configure.c/GetConfigureOptions/482/Configure
Searching for configure file: "G:\ImageMagick\config\magic.xml"
2008-03-18T09:49:48+01:00 0:01 0.016u 6.3.9 Configure convert.exe[504]: configure.c/GetConfigureOptions/482/Configure
Searching for configure file: "C:\Dokumente und Einstellungen\rst\magic.xml"
2008-03-18T09:49:48+01:00 0:01 0.016u 6.3.9 Configure convert.exe[504]: configure.c/GetConfigureOptions/482/Configure
Searching for configure file: "g:\imagemagick\magic.xml"
2008-03-18T09:49:48+01:00 0:01 0.031u 6.3.9 Configure convert.exe[504]: configure.c/GetConfigureOptions/482/Configure
Searching for configure file: "magic.xml"
2008-03-18T09:49:48+01:00 0:01 0.031u 6.3.9 Configure convert.exe[504]: magic.c/LoadMagicList/678/Configure
Loading magic map "G:\ImageMagick\config\magic.xml" ...
2008-03-18T09:49:48+01:00 0:01 0.031u 6.3.9 Configure convert.exe[504]: magic.c/LoadMagicList/678/Configure
Loading magic map "g:\imagemagick\magic.xml" ...
2008-03-18T09:49:48+01:00 0:01 0.047u 6.3.9 Configure convert.exe[504]: magic.c/LoadMagicList/678/Configure
Loading magic map "magic.xml" ...
2008-03-18T09:49:48+01:00 0:01 0.109u 6.3.9 Configure convert.exe[504]: nt-base.c/NTRegistryKeyLookup/1612/Configure
SOFTWARE\ImageMagick\6.3.9\Q:16
2008-03-18T09:49:48+01:00 0:01 0.109u 6.3.9 Configure convert.exe[504]: nt-base.c/NTRegistryKeyLookup/1630/Configure
CoderModulesPath

I can't find out what the problem is - do you have any further ideas?

Thanks so far.

Rainer
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

Re: convert gif to jgp: no decode delegate for this image format

Post by el_supremo »

The two versions are loading different configuration files.
The one that fails loads:

Code: Select all

" Loading magic map "d:\imagemagick\magic.xml" ..."
whereas the one that succeeds loads these:

Code: Select all

Loading magic map "G:\ImageMagick\config\magic.xml" ...
Loading magic map "g:\imagemagick\magic.xml" ...
It appears that you have two installations of IM, one on D: and one on G:.

Pete
Post Reply