This might be a php problem, but maybe somebody can help anyway
I installed 6.8.7-5 on an Ubuntu server.
Version: ImageMagick 6.8.7-5 Q16 x86_64 2013-11-10 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2013 ImageMagick Studio LLC
Features: DPC OpenMP
Delegates: bzlib djvu fontconfig freetype jng jp2 jpeg lcms lqr openexr pangocairo png tiff x xml zlib
I run php:
PHP Version 5.3.10-1ubuntu3.8
When i run the following command on a command line, all goes well:
Code: Select all
convert -background none -density 72 -fill red -font Arial-Bold -pointsize 30 label:Atext out1.png
convert: unable to read font `Arial-Bold' @ warning/annotate.c/RenderType/871.
When i run the exact command as www-data on a shell, it works good.
I have this issue with some fonts, most of the fonts work just fine.
The fonts are in: /usr/share/fonts/truetype/
When i do with php exec:
Code: Select all
identify -list font
When i do the same command on the prompt (also as www-data) it returns also Arial-Bold.
Anybody have an idea where i need to look for fixing this issue?