[Wolves] GD add text to picture
Wayne
waynelists at machx.co.uk
Wed Nov 20 15:08:56 UTC 2013
Hi,
Why isn't this working (well it creates image but no text!)
$origImage from elsewhere..... then
/* black for the text */
$black = imagecolorallocate($origImage, 0, 0, 0);
/* put the text on the image */
imagettftext($origImage, 72, 0, 0, 0, $black,
"/home/j9accomm/public_html/j9photobooth/arial.ttf", "Hello World");
/* save the image */
imagejpeg($origImage,'uploads/thumbs/'."result.jpg");
i've tried all manner of font paths etc in the font bit to no avail.
cheers
More information about the Wolves
mailing list