allot of problems with magic- delegates.xml and .c files

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
TeKett
Posts: 2
Joined: 2017-07-23T12:54:20-07:00
Authentication code: 1151

allot of problems with magic- delegates.xml and .c files

Post by TeKett »

I have no idea if this is the right place, since it just said you could ask questions, and there is no board for problems or support.

Im mostly just a end user running windows 10, i rarely use CMD, and have no clue in how to "build" a program, so i know almost to nothing. So i just installed with the windows installer version, and just checked all the boxes during the install.

As im seeing multiple ways to make commands, and non seam to have made some info about v7, since changes was made from what i could see, to how you write commands, im completely stuck. (should i just use a older version where there actually are info to be found?)

And all commands i find around the internet is out of date.

What im trying to do is morph 2 images. I understand that your supposed to start with magick, then i think convert, followed by my 2 images,
then -morph and the amount of images, followed by -path for output folder.

magick convert C:\Users\marcus\Pictures\1.png C:\Users\marcus\Pictures\2.png -morph 10 -path C:\Users\marcus\Desktop\New folder

But regardless of what i try it always end up saying:

Code: Select all

magick: UnableToOpenConfigureFile `magic.xml' @ warning/configure.c/GetConfigureOptions/715.
magick: UnableToOpenConfigureFile `delegates.xml' @ warning/configure.c/GetConfigureOptions/715.
magick: UnableToOpenModuleFile 'C:\Program Files\ImageMagick-7.0.6-Q16\modules\coders\IM_MOD_RL_PNG_.dll': No such file or directory @ warning/module.c/GetMagickModulePath/667.
magick: NoDecodeDelegateForThisImageFormat `PNG' @ error/constitute.c/ReadImage/509.
magick: NoImageForProperty "%w" @ warning/property.c/GetMagickPropertyLetter/2561.
magick: UnknownImageProperty "%w" @ warning/property.c/InterpretImageProperties/3499.
magick: NoImageForProperty "%h" @ warning/property.c/GetMagickPropertyLetter/2449.
magick: UnknownImageProperty "%h" @ warning/property.c/InterpretImageProperties/3499.
magick: NoImageForProperty "%m" @ warning/property.c/GetMagickPropertyLetter/2480.
magick: UnknownImageProperty "%m" @ warning/property.c/InterpretImageProperties/3499.
when i did a debug i got this:

Code: Select all

C:\Windows\System32>magick -debug configure C:\Users\marcus\Pictures\1.png C:\Users\marcus\Pictures\2.png

2017-07-23T21:49:58+02:00 0:00.001 0.000u 7.0.6 Configure magick[8356]: utility.c/ExpandFilenames/945/Configure
  Command line: C:\Users\marcus\Pictures\1.png
2017-07-23T21:49:58+02:00 0:00.004 0.000u 7.0.6 Configure magick[8356]: nt-base.c/NTRegistryKeyLookup/2032/Configure
  SOFTWARE\ImageMagick\7.0.6\Q:16
2017-07-23T21:49:58+02:00 0:00.007 0.000u 7.0.6 Configure magick[8356]: nt-base.c/NTRegistryKeyLookup/2053/Configure
  ConfigurePath
2017-07-23T21:49:58+02:00 0:00.009 0.000u 7.0.6 Configure magick[8356]: nt-base.c/NTRegistryKeyLookup/2032/Configure
  SOFTWARE\ImageMagick\7.0.6\Q:16
2017-07-23T21:49:58+02:00 0:00.011 0.000u 7.0.6 Configure magick[8356]: nt-base.c/NTRegistryKeyLookup/2053/Configure
  ConfigurePath
2017-07-23T21:49:58+02:00 0:00.014 0.000u 7.0.6 Configure magick[8356]: configure.c/GetConfigureOptions/688/Configure
  Searching for configure file: "C:\Program Files\ImageMagick-7.0.6-Q16\coder.xml"
2017-07-23T21:49:58+02:00 0:00.017 0.000u 7.0.6 Configure magick[8356]: configure.c/GetConfigureOptions/688/Configure
  Searching for configure file: "C:\Users\marcus\AppData\Local\ImageMagick\coder.xml"
2017-07-23T21:49:58+02:00 0:00.024 0.000u 7.0.6 Configure magick[8356]: nt-base.c/NTRegistryKeyLookup/2032/Configure
  SOFTWARE\ImageMagick\7.0.6\Q:16
2017-07-23T21:49:58+02:00 0:00.026 0.000u 7.0.6 Configure magick[8356]: nt-base.c/NTRegistryKeyLookup/2053/Configure
  CoderModulesPath
2017-07-23T21:49:58+02:00 0:00.029 0.000u 7.0.6 Configure magick[8356]: nt-base.c/NTRegistryKeyLookup/2032/Configure
  SOFTWARE\ImageMagick\7.0.6\Q:16
2017-07-23T21:49:58+02:00 0:00.032 0.016u 7.0.6 Configure magick[8356]: nt-base.c/NTRegistryKeyLookup/2053/Configure
  CoderModulesPath
2017-07-23T21:49:58+02:00 0:00.035 0.016u 7.0.6 Configure magick[8356]: nt-base.c/NTRegistryKeyLookup/2032/Configure
  SOFTWARE\ImageMagick\7.0.6\Q:16
2017-07-23T21:49:58+02:00 0:00.038 0.016u 7.0.6 Configure magick[8356]: nt-base.c/NTRegistryKeyLookup/2053/Configure
  ConfigurePath
2017-07-23T21:49:58+02:00 0:00.041 0.016u 7.0.6 Configure magick[8356]: nt-base.c/NTRegistryKeyLookup/2032/Configure
  SOFTWARE\ImageMagick\7.0.6\Q:16
2017-07-23T21:49:58+02:00 0:00.043 0.016u 7.0.6 Configure magick[8356]: nt-base.c/NTRegistryKeyLookup/2053/Configure
  ConfigurePath
2017-07-23T21:49:58+02:00 0:00.046 0.016u 7.0.6 Configure magick[8356]: configure.c/GetConfigureOptions/688/Configure
  Searching for configure file: "C:\Program Files\ImageMagick-7.0.6-Q16\magic.xml"
2017-07-23T21:49:58+02:00 0:00.050 0.016u 7.0.6 Configure magick[8356]: configure.c/GetConfigureOptions/688/Configure
  Searching for configure file: "C:\Users\marcus\AppData\Local\ImageMagick\magic.xml"
2017-07-23T21:49:58+02:00 0:00.054 0.016u 7.0.6 Configure magick[8356]: nt-base.c/NTRegistryKeyLookup/2032/Configure
  SOFTWARE\ImageMagick\7.0.6\Q:16
2017-07-23T21:49:58+02:00 0:00.057 0.016u 7.0.6 Configure magick[8356]: nt-base.c/NTRegistryKeyLookup/2053/Configure
  CoderModulesPath
2017-07-23T21:49:58+02:00 0:00.059 0.016u 7.0.6 Configure magick[8356]: nt-base.c/NTRegistryKeyLookup/2032/Configure
  SOFTWARE\ImageMagick\7.0.6\Q:16
2017-07-23T21:49:58+02:00 0:00.062 0.031u 7.0.6 Configure magick[8356]: nt-base.c/NTRegistryKeyLookup/2053/Configure
  CoderModulesPath
2017-07-23T21:49:58+02:00 0:00.066 0.031u 7.0.6 Configure magick[8356]: nt-base.c/NTRegistryKeyLookup/2032/Configure
  SOFTWARE\ImageMagick\7.0.6\Q:16
2017-07-23T21:49:58+02:00 0:00.072 0.031u 7.0.6 Configure magick[8356]: nt-base.c/NTRegistryKeyLookup/2053/Configure
  CoderModulesPath
2017-07-23T21:49:58+02:00 0:00.075 0.031u 7.0.6 Configure magick[8356]: nt-base.c/NTRegistryKeyLookup/2032/Configure
  SOFTWARE\ImageMagick\7.0.6\Q:16
2017-07-23T21:49:58+02:00 0:00.079 0.031u 7.0.6 Configure magick[8356]: nt-base.c/NTRegistryKeyLookup/2053/Configure
  ConfigurePath
2017-07-23T21:49:58+02:00 0:00.086 0.031u 7.0.6 Configure magick[8356]: nt-base.c/NTRegistryKeyLookup/2032/Configure
  SOFTWARE\ImageMagick\7.0.6\Q:16
2017-07-23T21:49:58+02:00 0:00.089 0.031u 7.0.6 Configure magick[8356]: nt-base.c/NTRegistryKeyLookup/2053/Configure
  ConfigurePath
2017-07-23T21:49:58+02:00 0:00.092 0.031u 7.0.6 Configure magick[8356]: configure.c/GetConfigureOptions/688/Configure
  Searching for configure file: "C:\Program Files\ImageMagick-7.0.6-Q16\delegates.xml"
2017-07-23T21:49:58+02:00 0:00.097 0.031u 7.0.6 Configure magick[8356]: configure.c/GetConfigureOptions/688/Configure
  Searching for configure file: "C:\Users\marcus\AppData\Local\ImageMagick\delegates.xml"
2017-07-23T21:49:58+02:00 0:00.101 0.031u 7.0.6 Configure magick[8356]: delegate.c/LoadDelegateCache/2015/Configure
  Loading delegate configuration file "built-in" ...
2017-07-23T21:49:58+02:00 0:00.105 0.031u 7.0.6 Configure magick[8356]: nt-base.c/NTRegistryKeyLookup/2032/Configure
  SOFTWARE\ImageMagick\7.0.6\Q:16
2017-07-23T21:49:58+02:00 0:00.108 0.031u 7.0.6 Configure magick[8356]: nt-base.c/NTRegistryKeyLookup/2053/Configure
  CoderModulesPath
2017-07-23T21:49:58+02:00 0:00.111 0.031u 7.0.6 Configure magick[8356]: nt-base.c/NTRegistryKeyLookup/2032/Configure
  SOFTWARE\ImageMagick\7.0.6\Q:16
2017-07-23T21:49:58+02:00 0:00.114 0.031u 7.0.6 Configure magick[8356]: nt-base.c/NTRegistryKeyLookup/2053/Configure
  CoderModulesPath
2017-07-23T21:49:58+02:00 0:00.117 0.031u 7.0.6 Configure magick[8356]: nt-base.c/NTRegistryKeyLookup/2032/Configure
  SOFTWARE\ImageMagick\7.0.6\Q:16
2017-07-23T21:49:58+02:00 0:00.119 0.031u 7.0.6 Configure magick[8356]: nt-base.c/NTRegistryKeyLookup/2053/Configure
  CoderModulesPath
2017-07-23T21:49:58+02:00 0:00.123 0.031u 7.0.6 Configure magick[8356]: nt-base.c/NTRegistryKeyLookup/2032/Configure
  SOFTWARE\ImageMagick\7.0.6\Q:16
2017-07-23T21:49:58+02:00 0:00.126 0.047u 7.0.6 Configure magick[8356]: nt-base.c/NTRegistryKeyLookup/2053/Configure
  CoderModulesPath
magick: UnableToOpenConfigureFile `magic.xml' @ warning/configure.c/GetConfigureOptions/715.
magick: UnableToOpenConfigureFile `delegates.xml' @ warning/configure.c/GetConfigureOptions/715.
magick: UnableToOpenModuleFile 'C:\Program Files\ImageMagick-7.0.6-Q16\modules\coders\IM_MOD_RL_PNG_.dll': No such file or directory @ warning/module.c/GetMagickModulePath/667.
magick: NoDecodeDelegateForThisImageFormat `PNG' @ error/constitute.c/ReadImage/509.
magick: NoImageForProperty "%w" @ warning/property.c/GetMagickPropertyLetter/2561.
magick: UnknownImageProperty "%w" @ warning/property.c/InterpretImageProperties/3499.
magick: NoImageForProperty "%h" @ warning/property.c/GetMagickPropertyLetter/2449.
magick: UnknownImageProperty "%h" @ warning/property.c/InterpretImageProperties/3499.
magick: NoImageForProperty "%m" @ warning/property.c/GetMagickPropertyLetter/2480.
magick: UnknownImageProperty "%m" @ warning/property.c/InterpretImageProperties/3499.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: allot of problems with magic- delegates.xml and .c files

Post by fmw42 »

In IM 7, you use "magick" in place of "convert". For other functions such as identify, montage, compare, etc. You must place "magick" before them.

I am not a Windows user, but it looks like the install was not proper.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: allot of problems with magic- delegates.xml and .c files

Post by snibgo »

TeKett wrote:magick: UnableToOpenConfigureFile `magic.xml'
Either the installation didn't work properly, or something bad has happened since then.

Debug tells you it is looking for "C:\Program Files\ImageMagick-7.0.6-Q16\magic.xml"
or "C:\Users\marcus\AppData\Local\ImageMagick\magic.xml". Do either of those exist? Is there a permission problem?
snibgo's IM pages: im.snibgo.com
TeKett
Posts: 2
Joined: 2017-07-23T12:54:20-07:00
Authentication code: 1151

Re: allot of problems with magic- delegates.xml and .c files

Post by TeKett »

snibgo wrote: 2017-07-23T14:55:12-07:00
TeKett wrote:magick: UnableToOpenConfigureFile `magic.xml'
Either the installation didn't work properly, or something bad has happened since then.

Debug tells you it is looking for "C:\Program Files\ImageMagick-7.0.6-Q16\magic.xml"
or "C:\Users\marcus\AppData\Local\ImageMagick\magic.xml". Do either of those exist? Is there a permission problem?
No appdata folder, there is a magic.xml in the install directory and it contains 6 markup declarations and some comments.

The directory need admin permission to do edits and was put to read only, but i took the read only off, other then that i have not touched anything. It was normally installed with the default install path, placed in C:\Program Files\
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: allot of problems with magic- delegates.xml and .c files

Post by snibgo »

TeKett wrote:No appdata folder, ...
That itself is weird. I use Windows 8.1, not Windows 10, but I didn't think that had changed.

Missing appdata shouldn't cause problems to IM. But it can't open XML files that you say are there. Just as a test, can you copy them?

Code: Select all

copy "C:\Program Files\ImageMagick-7.0.6-Q16\magic.xml" junk.bin
If that works, the xml file exists and you have permission to read it.
snibgo's IM pages: im.snibgo.com
Post Reply