Hi imagemagick users,
I got a strange error when using the montage commande :
"montage: UnableToReadFont `(null)' @ annotate.c/RenderFreetype/1024."
My command does not use the annotate attribute so I don't understand what I'm doing wrong ?
Here is my complete code line : (called from a perl script, and from the webhosting infomaniak with Perlmagic via Imagemagick 6.3.9)
system "/opt/misc/imagemagick/bin/montage -limit memory 0 -limit map 0 pan_h.jpg pan_h.jpg pan_h.jpg pan_h.jpg pan_h.jpg pan_h.jpg pan_h.jpg pan_h.jpg pan_h.jpg pan_h.jpg pan_h.jpg pan_h.jpg -size 80x60 -tile 4x3 -geometry +0+0 montage.png";
The result is OK, the file montage.png is created and has the montage has been done correctly.
And for information : on my local computer (under windows 7) I don't have this message.
So if someone one has a solution or an idea of a test I can do ?
Thanks.
Sorry for my english.
Patayou.
error unabletoreadfont when using montage command
Re: error unabletoreadfont when using montage command
hi !
nobody here ?
I still get this error.
please help !
nobody here ?
I still get this error.
please help !
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: error unabletoreadfont when using montage command
Have you tried an upgrade?
snibgo's IM pages: im.snibgo.com
Re: error unabletoreadfont when using montage command
hello,
thanks for the reply.
I can't upgrade the imagemagick version, imagemagick is installed by my hoster.
You mean there is a bug in the version I use ?
thanks for the reply.
I can't upgrade the imagemagick version, imagemagick is installed by my hoster.
You mean there is a bug in the version I use ?
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: error unabletoreadfont when using montage command
More than likely the 'type.xml' file which defines the location of font files is out of date.
Either specify the font file directly using
-font /path/to/directory/containing/this/font.ttf
or rebuild the text.xml file.
A script "imagick_type_gen" located in
http://www.imagemagick.org/Usage/scripts/
is designed to generate type.xml type files that can replace the system file, or
be 'included' into that file.
Read the header of the script, try it, then ask more questions.
Either specify the font file directly using
-font /path/to/directory/containing/this/font.ttf
or rebuild the text.xml file.
A script "imagick_type_gen" located in
http://www.imagemagick.org/Usage/scripts/
is designed to generate type.xml type files that can replace the system file, or
be 'included' into that file.
Read the header of the script, try it, then ask more questions.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
Re: error unabletoreadfont when using montage command
Hi,
Thanks for the answer but my command did not use any font !
So I cannot use the -font attribute to specify the font (because I don't know which one is used (cf. null))
However I failed to generate the type.xml, I'm on a shared server, I don't have access to the file directory.
Is there no other trick that can made it ?
Thanks for the answer but my command did not use any font !
So I cannot use the -font attribute to specify the font (because I don't know which one is used (cf. null))
However I failed to generate the type.xml, I'm on a shared server, I don't have access to the file directory.
Is there no other trick that can made it ?
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: error unabletoreadfont when using montage command
So, what is the problem? ImageMagick may not be properly installed, but it works.The result is OK, the file montage.png is created and has the montage has been done correctly.
snibgo's IM pages: im.snibgo.com
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: error unabletoreadfont when using montage command
Yes it IM should be able to use a default font at the minimum. If It can't do that then it is not installed properly.
Maybe it was installed as a "uninstalled" version. that means it requires a "MAGICK_HOME" environment variable to determine where the configuration files are located. Without them it will be unable to locate font, or even color names.
On the other hand it will also initialize faster
Maybe it was installed as a "uninstalled" version. that means it requires a "MAGICK_HOME" environment variable to determine where the configuration files are located. Without them it will be unable to locate font, or even color names.
On the other hand it will also initialize faster
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/