Screen Grab with PHP and/or Javascript?

前端 未结 6 744
礼貌的吻别
礼貌的吻别 2021-01-17 04:16

Just wondering if it\'s possible to screen grab a page you are viewing with a PHP script or javascript? For example, load up a page in an iframe and then save that view as

6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-17 04:24

    You can't do it in JS but you could do something similiar server side if you know the url of the page you want to convert to an image.

    Tools like khtml2png could be called from php to render the page.

提交回复
热议问题