lovephp Posted May 27, 2015 Share Posted May 27, 2015 ok what i am looking for is to be able to fetch users phone number from database and then display it over an image so that no copy paste business happens. any help? Link to comment https://forums.phpfreaks.com/topic/296500-writing-text-over-an-image/ Share on other sites More sharing options...
Barand Posted May 27, 2015 Share Posted May 27, 2015 Create a gd image from the jpg image file $im = imagecreatefromjpg('pathToImageFile'); Add the text using imagettftext() or imagestring() Output the new image with imagejpg() Link to comment https://forums.phpfreaks.com/topic/296500-writing-text-over-an-image/#findComment-1512683 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.