-
text on image
hi all i need some help with what im working on
i want to put some text in the middle of a picture and make the picture transparent by about 50%
i would like the text to be about 24 in size and bold
i have got this to now
Code:
$iOut = imagecreatetruecolor ("1268","202") ;
$text_color = imagecolorallocate($iOut, 233, 14, 91);
imagestring($iOut, 1000, 500, 100, 'A Simple Text String monkey', $text_color);
imagepng($iOut,$_SERVER["DOCUMENT_ROOT"].'/php/videos/hide/header2.jpg');
imagedestroy($iOut);
-
Re: text on image
hi
managed to sort the pictures transparency
stuck with puttinf txt on the image. i have this ut cant seem to change font size
Code:
$iOut=ImageCreateFrompng($_SERVER["DOCUMENT_ROOT"].'/php/videos/hide/tempheader.png');
$text_color = imagecolorallocate($iOut, 233, 14, 91);
imagestring($iOut, 22, 500, 100, 'A Simple Text String, $text_color);
imagejpeg($iOut,$_SERVER["DOCUMENT_ROOT"].'/php/videos/hide/header2.jpg');
imagedestroy($iOut);
-
Re: text on image
Thread moved from the 'CodeBank - PHP' forum (which is for you to post working code examples, not questions) to the 'PHP' forum