Solution 1 :

emm,I do not konw any back-end library to do it.but i had development this feature by FE is quickly?

  1. FE(javascript):use library(same as html2canvas etc.) to reader from an HTML template to image base64,then post base64 data to server
  2. BE(nodejs):use Buffer transefer to image,then save,and then response a url


Problem :

I want to know for my react native app, I want to generate a dynamic image rendered from an HTML template to share when I share something from the app to a Whatsapp contact? What should be the best way to do so? The FE or the BE? I already have puppeteer in place at the backend, but generating images using it seems quite slow, please mention if you have any puppeteer optimizations or any other library or technique? Thanks
NOTE: My B.E is in Nodejs.


Leave a Reply

Your email address will not be published. Required fields are marked *