How to generate website Thumbnails based on url in web Front end

Can the

front end generate thumbnails based on the url of the website?

=
later, the solution is that the pages that need thumbnails are uploaded to the server through html2canvas screenshots, and the corresponding images are queried on the pages that need to be displayed.
method is a bit low,. If the backend is willing to try, you can refer to
https://github.com/juliangrub.
http://phantomjs.org/

.
Apr.08,2021

cannot be done at present, unless you write a very complex set of html parsing + back-end agent + dom parsing to generate pictures, and even write a js interpreter to run javascript


provide two clues: html2canvas , headless chrome screenshot

Menu