DancingNapkin Posted March 19, 2012 Share Posted March 19, 2012 Hello everyone, What is the best way to take HTML formatted text and overlay it on a image (presumably using php's GD functions)? Unfortunately, HTML tags are ignored and any kind of code is treated as plaintext by imagefttext(). However, I need this HTML DIV box pasted onto an image and I intend to get it done. To make things slightly worst, this is a dynamic, PHP generated DIV box. I had an idea of utilizing some kind of buffering to generate my DIV box, convert that DIV box to an image and finally paste it onto my image using the GD library. If that sounds like a reasonable idea, can someone please help me get started? Thanks in advance, guys! Link to comment https://forums.phpfreaks.com/topic/259269-the-best-way-to-format-text-using-gd-library/ Share on other sites More sharing options...
requinix Posted March 19, 2012 Share Posted March 19, 2012 Does a background image not suffice? Link to comment https://forums.phpfreaks.com/topic/259269-the-best-way-to-format-text-using-gd-library/#findComment-1329101 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.