In the web version of the multi-person chat room, the data is generated into pictures and pushed to the chat room in the format of pictures.

in the web version of the multi-person chat room, after getting the data, I want to generate a picture of the data and display it in the chat room in the format of the picture. Do you have any examples or ideas that the great god knows how to do for reference? thank you!

Aug.14,2021

Canvas output base64, is then populated into the src of the img element (new).


the Canvas output base64, is then populated into the src of the img element (new).

lx panda mulberry's suggestion is not bad

there is another idea: the data can not be transferred to the front end, and the back end can generate img,push directly to the front end, so that the data does not have to go to the front end

Menu