I am trying to get it to show text1 and text2 on the same image only Text1 is showing up
$rImg = ImageCreateFromJPEG("test.jpg");
$cor = imagecolorallocate($rImg, 0, 0, 0);
imagestring($rImg,5,126,22,"Text1",$cor);
imagestring($rImg,5,500,34,"Text2",$cor);
header('Content-type: image/jpeg');
imagejpeg($rImg,NULL,100);
Thank you
You code works when I test it. The second argument to imagestring is a font identifier (I originally thought it was x-coord). Is your test image > 500 pixels wide?
This works great: