Aku facing masalah slow processing bila bermain dgn Annotate under ImageMagick.
pening gak cari punca masalah ni... tapi last sekali jumpa. berpunca dari imagemagick nak query font.
solution, define terus path ke font file. baru kembali laju...
$image->Annotate(font => "/Library/Fonts/MyriadWebPro.ttf",pointsize=>15, text=>"$txt",geometry=>'+705+272');
* nak selamat, copy terus font file (*.ttf) ke working folder. so bila kita copy script ke machine or server lain. x la ada isu timbul bila font yg kita define tak ada dlm machine or server baru tu.
No comments:
Post a Comment