Render text into an image

Hello, I am still new to web technologies and basically what I need to do now is render some text into and image and send that image somewhere. Basically I need to generate an image and it would be nice if I could use the common web techniques to do it. Sort of like doing a screenshot of a certain div. The final image should only contain some text. Also the result should be created off-screen. Any ideas?

Thanks

Hi @APrince,

Check html2canvas. It allows you to render an HTML node in a canvas element and get an image (or base64) from it.

Best,
Rodrigo

1 Like

Thanks that looks like what I was looking for. Will have a look at it. Thanks…

1 Like