Is there any way I can convert the input text into an image. What I am exactly trying to do is type some text into a textbox and display it on div. When I click on a button the text copied to div should be changed to an image. Does anyone know anything about this? Thanks in advance!
Share
You can do this using a hidden canvas element and converting that to an image using
toDataURL. Your code would look something like this:
Demo