I have a slight problem... My script works perfectly fine on Ubuntu (my laptop) and on FreeBSD (my old webhost, aka Powweb). But now I want to migrate to a new server, running CentOS fresh out of the box.
On CentOS, everything else is fine (resizing, cropping, etc) but "annotate" is totally ignored! Because the CentOS server was pretty bare when I found it, I thought it might be because there are no fonts installed, and that was indeed the case. So I uploaded a bunch of fonts, ran fc-cache, and even rebooted, but still...
Symptom: annotate is totally ignored, nothing is annotated on to the pic, and nothing is written into the httpd error log either. I'm stymied!
I thought the Magick.pm version might be old, so I copied the Magick.pm from my Ubuntu laptop to the server... Same result! Nada! Zilch!
Any ideas what's missing? I'm certain it's the environment, but I have no idea what else I should install or do. Here is my line:
Code: Select all
$image->Annotate(font=>'Arial', family=>'sans-serif', style=>'Italic', antialias=>1, weight=>10, pointsize=>12, undercolor=>'#3f567f', gravity=>$wind, fill=>'#b9c3d5', text=>$text);
Any ideas? I've been scratching my head for hours and hours...
# I should note that on FreeBSD the "Italic" bit is ignored...
# I guess Image Magick is like me and likes Ubuntu best!