| Version: | GraphicsMagick 1.3.36 20201226 |
| OS: | macOS Catalina 10.15.7 |
| Error Msg: | gm convert: Unable to access configuration file (type-personal.mgk) [No such file or directory]. |
Note: This version of GM was installed via MacPorts.
When I attempt to link additional .mgk files with names other than type.mgk to the "original" type.mgk located in the config directory, GM will error out with the error message above.
The file /opt/local/lib/GraphicsMagick-1.3.36/config/type.mgk is configured as follows and works correctly:
<?xml version="1.0"?>
<typemap>
<include file="/Users/<username>/.magick/type.mgk" />
</typemap>
Now, if I want to add some additional fonts and use a second include tag as shown below, I get the error message described above and GM will generate no output. In fact, until I resolve the error (remove the include), GM will fail.
<?xml version="1.0"?>
<typemap>
<include file="/Users/<username>/.magick/type.mgk" />
<include file="/Users/<username>/.magick/type-personal.mgk" />
</typemap>
I've done extensive testing and have found that:
type elements (font definitions) into one file named type.mgk, it works without error (I was checking to see if the XML data was corrupt in any way)type.mgk will work. Whether I have a single include or multiple, if the filename is anything but type.mgk it will error out.type-personal.mgk to a different directory as type.mgk, it will work properly (see example below):<?xml version="1.0"?>
<typemap>
<include file="/Users/<username>/.magick/type.mgk" />
<include file="/Users/<username>/.magickTEST/type.mgk" />
</typemap>
Basically, as long as the include file is named type.mgk it will work; anything else and GM fails.. This seems odd given that in the /config directory, there are a few additional .mgk files like type-ghostscript.mgk, type-solaris.mgk and type-windows.mgk.
To make this work properly and not have these config files in different directories, I have merged the two files so that there is only on type.mgk being referenced. However, this is impractical as there are times I need to add (licensed) fonts for a particular project and would prefer to simple link to a descriptively named .mgk
How does one edit a ticket?
Diff:
It does not appear that issue submitters can edit a ticket unless they are also members of the project. However, it is possible to request changes via subsequent comments. This is a good thing in order to avoid the "moving picture" problem.
I suspect that MacPorts may be configuring GraphicsMagick with the --disable-installed configure option. This would be apparent in the output of 'gm -version'.
Use the command 'gm convert -debug configure -list type' in order to see the steps which are being performed to include and search for files. Can you please provide the output from that here?
A more complete configuration log may be obtained like:
'MAGICK_DEBUG=configure gm convert -list type'
Bob
A response to questions asked is needed before any action can be taken due to this bug report.