How to generate thumbnail images of HTML pages

前端 未结 5 554
情书的邮戳
情书的邮戳 2021-01-31 04:21

I am trying to create thumbnail images for several HTML pages, so the user can have an idea of what the HTML looks like before they open the link. I have searched online but hav

5条回答
  •  误落风尘
    2021-01-31 04:45

    You might want to check out this url: http://html2canvas.hertzen.com/.

    Using this script, you can convert the page into a canvas on the client side.

    Then you can use that as your thumbnail.

提交回复
热议问题