How do I turn page elements into pictures?

  node.js, question

Recently, the company has a requirement to place several pictures in an element and then generate the element into a picture. How do you do it with js?


I haven’t used it. I don’t know how it works. Of course, this has browser restrictions.

I saw one a long time ago, but I forgot my name. I need the cooperation of the server side. It seems like php. The general principle is like this.
The front end is passed to the back end by passing html fragments (all of which are captured inside him, including styles, etc.), and the back end is parsed and rendered by an interface-free Rendering Engine and saved as a picture.
But it seems to have tried, and the effect is not very good.

If you know the name, please let me know by the way