How to save webpage as a image file using PHP?

前端 未结 4 1368
醉酒成梦
醉酒成梦 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:16

    Like others have said, it would be difficult to do in PHP alone. However, there is an easy-to-use cross-platform tool called CutyCapt that does exactly what you need. The best part about this tool is that it's stand-alone and doesn't depend on anything else.

提交回复
热议问题