How to save webpage as a image file using PHP?

前端 未结 4 1369
醉酒成梦
醉酒成梦 2020-11-30 10:53

I want to save webpage as image file or i want to take snapshot of an webpage using PHP. Just like firefox extension Fireshot doing.

4条回答
  •  执念已碎
    2020-11-30 11:09

    You cannot do this with pure PHP, try forking a browser like Mozilla with headless mode and let it handles taking snapshot of the page.

提交回复
热议问题