DeanWhitehouse Posted May 14, 2008 Share Posted May 14, 2008 is it possible to burn information from a database to an image, so it can be printed on the image?? printed as in printing using a printer Quote Link to comment https://forums.phpfreaks.com/topic/105665-burn-text-to-images/ Share on other sites More sharing options...
DeanWhitehouse Posted May 15, 2008 Author Share Posted May 15, 2008 anyone? Quote Link to comment https://forums.phpfreaks.com/topic/105665-burn-text-to-images/#findComment-541425 Share on other sites More sharing options...
StormTheGates Posted May 15, 2008 Share Posted May 15, 2008 You can use GD to lay text over a background and then make then render it as an image in the browser. Quote Link to comment https://forums.phpfreaks.com/topic/105665-burn-text-to-images/#findComment-541431 Share on other sites More sharing options...
DeanWhitehouse Posted May 15, 2008 Author Share Posted May 15, 2008 will that print the text on the image, if i print it ? and if so anyone know where i can learn to do this Quote Link to comment https://forums.phpfreaks.com/topic/105665-burn-text-to-images/#findComment-541432 Share on other sites More sharing options...
StormTheGates Posted May 15, 2008 Share Posted May 15, 2008 http://kore-nordmann.de/blog/image_creation_with_php_texts.html Or maybe just google around a little for PHP GD text on image. Quote Link to comment https://forums.phpfreaks.com/topic/105665-burn-text-to-images/#findComment-541437 Share on other sites More sharing options...
MadTechie Posted May 15, 2008 Share Posted May 15, 2008 i think you mean watermarking, <?php /* put ONLY this code into a file called image.php put a image called "myimage.jpg" info the same folder then open image.php */ $imgname = "myimage.jpg"; $im = imagecreatefromjpeg($imgname); $tc = imagecolorallocate($im, 0, 0, 0); imagestring($im, 1, 5, 5, "Hellow", $tc); header("Content-Type: image/jpeg"); imagejpeg($im); ?> Quote Link to comment https://forums.phpfreaks.com/topic/105665-burn-text-to-images/#findComment-541439 Share on other sites More sharing options...
DeanWhitehouse Posted May 15, 2008 Author Share Posted May 15, 2008 it's for printable wedding invitations, that have the details you entered on it , and you can print it off with your details on it Quote Link to comment https://forums.phpfreaks.com/topic/105665-burn-text-to-images/#findComment-541441 Share on other sites More sharing options...
MadTechie Posted May 15, 2008 Share Posted May 15, 2008 my code does a very basic print text onto an image, key functions imagestring imagejpeg Quote Link to comment https://forums.phpfreaks.com/topic/105665-burn-text-to-images/#findComment-541450 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.