Jump to content

In-line image with imagettftext


musclemanjr

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/239743-in-line-image-with-imagettftext/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.