Getting error on annotate image using custom font

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
richard_singh
Posts: 5
Joined: 2014-12-07T05:20:29-07:00
Authentication code: 6789

Getting error on annotate image using custom font

Post by richard_singh »

Hi All,

I am new to imagemagick. We trying to generate thumbnail image from the source and annotate image with custom font for watermarking. We are getting the below error. Need a help to identify the issue fix it in my command.

Version: ImageMagick 6.7.6-5

convert ICT-F0014018.jpg -intent relative -resize "1024x768>" -quality 95 -colorspace sRGB -strip -auto-orient -font "/home/watermark/webfont.ttf" -pointsize 22 -fill "rgba(255,255,255,0.30)" -gravity center -annotate +0+0 "Copyright" ICT-F0014018-screenres.jpg

convert: DelegateLibrarySupportNotBuiltIn `home/watermark/webfont.ttf' (Freetype) @ warning/annotate.c/RenderFreetype/1523.
convert: UnableToOpenConfigureFile `delegates.xml' @ warning/configure.c/GetConfigureOptions/591.
convert: DelegateLibrarySupportNotBuiltIn `home/watermark/webfont.ttf' (Freetype) @ warning/annotate.c/RenderFreetype/1523

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

Re: Getting error on annotate image using custom font

Post by snibgo »

What does "convert -version" say?

For me, it says:

Code: Select all

Version: ImageMagick 6.9.0-0 Q16 x64 2014-11-14 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC OpenMP
Delegates (built-in): bzlib cairo freetype jbig jng jp2 jpeg lcms lqr pangocairo
 png ps rsvg tiff webp xml zlib
So freetype is a built-in delegate. I suspect your version doesn't have this.

The cure is to rebuild with freetype. I suggest you also update your very old version of ImageMagick.
snibgo's IM pages: im.snibgo.com
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Getting error on annotate image using custom font

Post by Bonzo »

Out of interest I do not think -auto-orient will work as you have removed the image data with -strip. You might have also removed the colorspace you have just added as well.
I also use -quality just before the save.
richard_singh
Posts: 5
Joined: 2014-12-07T05:20:29-07:00
Authentication code: 6789

Re: Getting error on annotate image using custom font

Post by richard_singh »

Thanks for your response. My version does not shows any delegates. I tried taking binaries from ImageMagick site does binary version has freetype configure. Do you suggest me to build from the source.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Getting error on annotate image using custom font

Post by fmw42 »

What do you get from

convert -list delegates

It should show a line showing all the delegates installed.

6.7.6-5 is about 240 versions old.

What is your platform?

The binary should include freetype. So use the binary if your system is supported. If not, then you need to compile all the delegates you want manually and then install IM from source. That can be very tedious on Linux.
richard_singh
Posts: 5
Joined: 2014-12-07T05:20:29-07:00
Authentication code: 6789

Re: Getting error on annotate image using custom font

Post by richard_singh »

convert -version
Version: ImageMagick 6.7.6-5 2012-04-16 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features:

convert -list delegates
convert: UnrecognizedListType `delegates' @ error/convert.c/ConvertImageCommand/1881.

Platform : SunOS 5.10 (Sparc)

I tried taking latest binary but I am getting this error.
convert -list delegates
ld.so.1: convert: fatal: libpng14.so.14: open failed: No such file or directory
Killed
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Getting error on annotate image using custom font

Post by fmw42 »

sorry, it should be

convert -list configure

I am sorry, but I know very little about Linux and whether the IM Sun binary package is useable on your version of Sun OS
Post Reply