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... Link to comment https://forums.phpfreaks.com/topic/24984-is-this-possible/ 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. Link to comment https://forums.phpfreaks.com/topic/24984-is-this-possible/#findComment-113870 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? Link to comment https://forums.phpfreaks.com/topic/24984-is-this-possible/#findComment-113872 Share on other sites More sharing options...
Psycho Posted October 24, 2006 Share Posted October 24, 2006 Um, google "imagettftext" Link to comment https://forums.phpfreaks.com/topic/24984-is-this-possible/#findComment-113873 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? Link to comment https://forums.phpfreaks.com/topic/24984-is-this-possible/#findComment-113877 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 Link to comment https://forums.phpfreaks.com/topic/24984-is-this-possible/#findComment-114271 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.