So I'm writing a photo album script, and I'd like the name of the image to be placed over the image. I am having a problem trying to do this though, and I'm not sure why.
$tnail is a valid image which contains transparency, and when I output it, it looks fine, even after I do any of this...
$fontfile = "/Library/WebServer/swigg/photoalbum/include/Generic.tff";
$black = imagecolorallocate($tnail, 0, 0, 0);
$white = imagecolorallocate($tnail, 255, 255, 255);
Your saying..."of course that wouldn't change anything you stupid SOB."
The annoying part is that this works to add text...
imagestring($tnail, 5, 5, 5, "test", $black);
But it is small and ugly, so I thought it would be nice to try and use a true type font. Well when I try that, the images don't output.
This takes the amount of time it should, but no image is ever outputted then.
imagepstext($tnail, "test", $fontfile, 10, $black, $white, 5, 5);
This however doesn't output anything, but doesn't seems to really process either.
imagefttext ($tnail, 10, 0, 5, 5, $black, $fontfile, "test");
I was hoping for some insight, or to be told what I'm doing wrong, because this is beginning to get very aggravating.
My phpinfo() looks like the necessary extensions or whatever for php are on. Any ideas?