musclemanjr Posted June 18, 2011 Share Posted June 18, 2011 Hi everyone. I have a script which generates an image based on user input using imagettftext(). However, I've run into a problem. When the user inputs a specific string, say "/o/", I want the script to put in an image at that point instead of the "/o/", and continue writing the remaining text. Fore example, if a user inputs "Hello /o/!", I would want the generated image to read "Hello," followed by a specified image, then "!" all in-line (as if it were html with an <img> tag) Is there any way to do this? Quote Link to comment https://forums.phpfreaks.com/topic/239743-in-line-image-with-imagettftext/ Share on other sites More sharing options...
gizmola Posted June 18, 2011 Share Posted June 18, 2011 Of course, you just need to code it. GD has lots of useful functions you should read through. This one will probably be of help imagecopyresized. Quote Link to comment https://forums.phpfreaks.com/topic/239743-in-line-image-with-imagettftext/#findComment-1231563 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.