Trying to split the two issues.
Default font issue
fmw42 wrote:Does montage work without error, if you add -font Arial or some other font? If not, then perhaps your freetype is flawed or outdated.
If I specify a font that is available in
then it works without warning. (Arial is commonly not present on Linux, although some distributions might have links from it to an open alternative I guess.)
fmw42 wrote:Do you get the same message? If so, then perhaps your system has not defined a default font.
Code: Select all
$ convert -background white -fill white -pointsize 36 label:"testing" result.jpg
convert: unable to read font `(null)' @ error/annotate.c/RenderFreetype/1316.
convert: unable to read font `(null)' @ error/annotate.c/RenderFreetype/1316.
convert: unable to read font `(null)' @ error/annotate.c/RenderFreetype/1316.
convert: unable to read font `(null)' @ error/annotate.c/RenderFreetype/1316.
The error is new to me.
As far as I'm concerned, this started with 6.9.5.4 or 6.9.5.5
If I remove the colors it does render text with the same warning.
So either you're right and my system used to specify a default font but does not any more or imagemagick just started implementing this warning:
WARNING: If the font requested is not found, ImageMagick used to silently substitute a default font, typically Arial or Times. It still does this, but a warning is now given. So, test the font beforehand, to make sure that it is the one you want, and not the default font.
(from
http://www.imagemagick.org/Usage/#font )
So far I know nothing about Linux-wide settings regarding default font (except for Xorg but I think I only changed that for terminal shells).
I wonder: should there be a default font defined on Linux, causing Imagemagick not to complain or is it normal on Linux that no default font is defined and Imagemagick is supposed to always warn if no font is specified?
Montage auto label issue
fmw42 wrote:These images have no comment field. What do you mean by "title" in EXIF? Do you mean comment or label field? What version used to add it automatically. Usually you have to use -label in montage to get it to add text.
Code: Select all
$ convert result.jpg -set comment "rose1" rose1.jpg
$ convert result.jpg -set label "rose2" rose2.jpg
$ montage rose1.jpg rose2.jpg result.jpg
montage: unable to read font `(null)' @ error/annotate.c/RenderFreetype/1316.
This produces images without labels.
The following produces labels (annotations? titles?) in the montage:
Code: Select all
$ convert -size 140x80 label:"TEST" test.png
$ montage test.png test.png -geometry +0+0 montage.png
I think the last time I worked with a script that produced such content was 2013 or 2014, haven't tested since until now.
Version: ImageMagick 6.9.5-5 Q16 x86_64 2016-08-07
I don't know much about image metadata.
Code: Select all
$ exiftool test.png |grep Label
Label : TEST