marcus Posted October 24, 2006 Share Posted October 24, 2006 Is it possible to include PHP in an image file, like PNG, GIF, JPG, JPEG, BMP... etc...?Like if I wanted to echo a number in an image, but keep the extension png, gif, jpg etc... Quote Link to comment Share on other sites More sharing options...
brendandonhue Posted October 24, 2006 Share Posted October 24, 2006 Images aren't in text format so you can't echo the text. You can use imagettftext() or similar functions to write text into an image. Quote Link to comment Share on other sites More sharing options...
marcus Posted October 24, 2006 Author Share Posted October 24, 2006 Where could I find a tutorial on this? Quote Link to comment Share on other sites More sharing options...
Psycho Posted October 24, 2006 Share Posted October 24, 2006 Um, google "imagettftext" Quote Link to comment Share on other sites More sharing options...
marcus Posted October 24, 2006 Author Share Posted October 24, 2006 Well I wanted to know if it was possible to make a png file use php? Quote Link to comment Share on other sites More sharing options...
Psycho Posted October 25, 2006 Share Posted October 25, 2006 An image file doesn't [b]use[/b] anything. As brendandonhue stated you can use imagettftext() or similar functions to use PHP to add text or manipulate an image.http://us3.php.net/imagettftext Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.