Page 1 of 1

Is it possible to render text without X11 installed?

Posted: 2014-09-10T20:08:58-07:00
by konstantin
I have a headless VPS with Arch Linux. I try to render text on to some images with command mogrify and option "label":

Code: Select all

mogrify -path ./splice -verbose  -filter Lanczos -resize 320x240 -fill blue -font /usr/share/fonts/TTF/FreeMono.ttf label:text -splice 1x1 -format bmp image.jpg 
, but all I get are error messages:

Code: Select all

mogrify: no encode delegate for this image format `LABEL' @ error/constitute.c/WriteImage/1166.
and

Code: Select all

mogrify: unable to read font `(null)' @ error/annotate.c/RenderFreetype/1127.

Re: Is it possible to render text without X11 installed?

Posted: 2014-09-10T20:26:47-07:00
by fmw42
I think the issue is your use of label:. I get the same error using label:. However, it works fine for me if I use -annotate or -draw. IM 6.8.9.7 Q16 Mac OSX

label: and caption: are typically for creating a new image (using -size) of text and not for adding text to an existing image.

see
http://www.imagemagick.org/Usage/text/