Page 1 of 1

Getting error on annotate image using custom font

Posted: 2014-12-07T05:26:38-07:00
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

Re: Getting error on annotate image using custom font

Posted: 2014-12-07T05:34:30-07:00
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.

Re: Getting error on annotate image using custom font

Posted: 2014-12-07T05:51:49-07:00
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.

Re: Getting error on annotate image using custom font

Posted: 2014-12-07T17:41:30-07:00
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.

Re: Getting error on annotate image using custom font

Posted: 2014-12-07T17:45:10-07:00
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.

Re: Getting error on annotate image using custom font

Posted: 2014-12-07T17:55:32-07:00
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

Re: Getting error on annotate image using custom font

Posted: 2014-12-07T18:00:45-07:00
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