error unabletoreadfont when using montage command

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
patayou

error unabletoreadfont when using montage command

Post by patayou »

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.
patayou

Re: error unabletoreadfont when using montage command

Post by patayou »

hi !

nobody here ?

I still get this error.

please help !
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: error unabletoreadfont when using montage command

Post by snibgo »

Have you tried an upgrade?
snibgo's IM pages: im.snibgo.com
patayou

Re: error unabletoreadfont when using montage command

Post by patayou »

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 ?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: error unabletoreadfont when using montage command

Post by anthony »

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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
patayou

Re: error unabletoreadfont when using montage command

Post by patayou »

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 ?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: error unabletoreadfont when using montage command

Post by snibgo »

The result is OK, the file montage.png is created and has the montage has been done correctly.
So, what is the problem? ImageMagick may not be properly installed, but it works.
snibgo's IM pages: im.snibgo.com
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: error unabletoreadfont when using montage command

Post by anthony »

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 :-)
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply