RE: [PHP] make a gif
Try searching for image gd text at http://www.php-code-search.com/ There are lots of examples -Original Message- From: John Taylor-Johnston [mailto:[EMAIL PROTECTED] Sent: Monday, April 23, 2007 7:02 PM To: PHP-General Subject: [PHP] make a gif I want to print [EMAIL PROTECTED] into a gif or png. How do I do this? Thanks. It seems too simple to ask. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] make a gif
On Mon, April 23, 2007 12:01 pm, John Taylor-Johnston wrote: I want to print [EMAIL PROTECTED] into a gif or png. How do I do this? Thanks. It seems too simple to ask. -- file: foo.php - ?php $image = imagecreatetruecolor(400, 20); $white = imagecolorallocate($image, 255, 255, 255); $black = imagecolorallocate($image, 0, 0, 0); imagefilledrectangle($image, 0, 0, 400, 20, $white); imagestring($image, 5, 4, 4, '[EMAIL PROTECTED]', $black); header(Content-type: image/png); imagepng($image); ? img src=foo.php / -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] make a gif
Excellent. I was trying to figure out how to use colour from the example in the manual. This is easier. Thanks! John Richard Lynch wrote: On Mon, April 23, 2007 12:01 pm, John Taylor-Johnston wrote: I want to print [EMAIL PROTECTED] into a gif or png. How do I do this? Thanks. It seems too simple to ask. -- file: foo.php - ?php $image = imagecreatetruecolor(400, 20); $white = imagecolorallocate($image, 255, 255, 255); $black = imagecolorallocate($image, 0, 0, 0); imagefilledrectangle($image, 0, 0, 400, 20, $white); imagestring($image, 5, 4, 4, '[EMAIL PROTECTED]', $black); header(Content-type: image/png); imagepng($image); ? img src=foo.php /
[PHP] make a gif
I want to print [EMAIL PROTECTED] into a gif or png. How do I do this? Thanks. It seems too simple to ask. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] make a gif
[snip] I want to print [EMAIL PROTECTED] into a gif or png. How do I do this? Thanks. It seems too simple to ask. [/snip] It is. http://www.php.net/gd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php