Programmatically create image from web-page or a single DIV

后端 未结 6 793
滥情空心
滥情空心 2020-12-05 20:12

Is there any way to programmatically create (client or server side (PHP)) a image from a specific DIV or a complete (web) page? I\'m currently creating a web-site for free c

6条回答
  •  天命终不由人
    2020-12-05 20:54

    It is possible to get a screenshot from a webpage, but this is quite a hassle. You need to start a webbrowser to render the page and get a screenshot from that.

    You are probably better of by parsing some specification and feeding it to a couple of GD or Imagick functions. This is less versatile, but easier to manage.

提交回复
热议问题