I have been working on a script with some help. What I am trying to do is have 2 seperate values and post them in exact coords on an image. Like a watermark but in text. Here is what I have so far but I dont get any errors just a red X. Any help is appricated
The image I am using is here:PHP Code:<?
header('Content-Type: image/jpeg');
$text1 = "12";
$text2 = "43";
$image = imagecreatefromjpeg("water.jpg"); //read the image into memory for editing...
$white = imagecolorallocate($image,255,255,255); //php.net/imagecolorallocate
imagettftext($image,5, 0, 20, 20, $white, "../gillsans.ttf", $text1); //string 1
imagettftext($image,5, 0, 20, 50, $white, "../gillsans.ttf", $text2); //string 2
imagejpeg($image,'',60); //This outputs to browser....
imagedestroy($image); //Remove image from memory
?>
http://65.69.189.225/ftp/CoZ/pappy/water.jpg
and the page i have the script on is here
http://65.69.189.225/ftp/CoZ/pappy/new.php
Thank you,
PaPPy




Reply With Quote