View Full Version : Php image.
Nasimov
03-09-2004, 11:41 AM
Hello,
I want to load text from a .txt file on the web and put it on to an image. How can I do that in php?
Thanks.
JerryScript
03-10-2004, 01:33 AM
You will need to have PHP compiled with GD support (check the output of <?phpinfo();?> on your server).
The online PHP manual has tons of user submitted info on how to use the image functions. Here are the main pages you will need:
Main Image Page (http://www.php.net/manual/en/ref.image.php)
Load a JPEG image for manipluation (http://www.php.net/manual/en/function.imagecreatefromjpeg.php)
Adding TTF text (http://www.php.net/manual/en/function.imagettftext.php)
Adding Free Type 2 text (http://www.php.net/manual/en/function.imagefttext.php)
Save/Output the manipulated image (http://www.php.net/manual/en/function.imagejpeg.php)
Destroy the image after outputting (frees up memory) (http://www.php.net/manual/en/function.imagedestroy.php)
Hope that helps!
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.