Hi,
I am having a problem with this. I have a business card image and I want to edit it using PHP. It is a JPEG.
Here is my code :
<?php
header ("Content-type: image/jpeg");
$image = imagecreatefromjpeg ("blank.jpg");
$black = imagecolorresolve ($image, 0, 0, 0);
imagettftext ($image, 20, 0, 10, 20, $black, 'arial.ttf', 'Test Text');
imagejpeg($image,'',90);
imagedestroy($image);
?>
Now, I see the image blank.jpg. However, no text shows up!
Is it a faulty code? COuld it be the JPEG image? DO I have to uplaod arial.ttf to my web server?
Thanks.