I am getting error: convert: unable to read font
Posted: 2012-05-04T12:41:32-07:00
I am getting error: convert: unable to read font
well I insert arial.ttf file in the same directory as my file.php file, well can you recommend, how to fix?
Code: Select all
Array ( [0] => convert: unable to read font `/usr/share/fonts/default/TrueType/arial.ttf'. )
Code: Select all
$font = "Arial";
$cmd = "$original_image \( -clone 0 -thumbnail {$max_width_l}x{$max_width_l} -gravity center -fill rgba\(0,0,0,0.2\) -pointsize 72 -font $font -annotate +0+0 'TEST' -write $new_image_l +delete \) -thumbnail {$max_width_s}x{$max_width_s} $new_image_s";
exec("/usr/local/bin/convert $cmd 2>&1", $array);