Lurker News
Back to discussion

Comment by zerop

zerop6 replies#
Not the API, I meant this functionality of rendering text on image, can this be done in JS only?
motyar#
Yes its way easier in browser on front-end.

But you need API for the things that happens off browser. Like if you want to create images inside your code.

harperlee#
It can be done, but this is already done, so you can just pay with money instead of dev time.
karqt#
Sure it can, and I'd say it's much cheaper to do it in JS than using API (with quite small quota, even for paid plans)
finnx#
Yes, HTML5 Canvas. ctx.drawImage() ctx.fillText()
dudus#
Yes but then you can't post it to social media as easily. Unless you export it as an image from JavaScript.

This is good for social media managers that want to automate a lot of account posts.