在任何浏览器、任何没有客户端插件的网站上自动捕获屏幕?
我正在开发一个网络应用程序,允许用户输入任何网站的 URL,然后该网络应用程序将准备该网站的全屏截图,存储在服务器中或可供下载。
理想情况下,这应该在服务器端工作,这样就不会有客户端依赖性。
我发现 wkhtmltoimage,但捕获以 Big5 编码的网站会导致出现乱码文本。使用 Unicode 的网站可以完美运行。
还有其他方法可以做到这一点吗? PHP 抓取屏幕仅适用于 Windows,我的目标平台是 Linux,因此这不是一个选项。
先感谢您。
I am working on a webapp that allows users to input a URL of any websites, the webapp will then prepare a full screen-cap of the website, to be stored in server, or made available for download.
Ideally this should work on the server-side so there will not be a client-side dependency.
I found wkhtmltoimage but capturing a website that is encoded in Big5 would result in gibberish text. Websites that use Unicode works flawlessly tho.
Is there any other way to do this? PHP grabscreen works only in Windows, my target platform is Linux so that is not an option.
Thank you in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我也在找那个。我的解决方案是像这个人在他的网站上所做的那样: http://hertzen.com/experiments/jsfeedback/< /a>
他使用 Javascript canvas...
这对我有用
I was looking for that too. My solution was to do like this guy did at his website: http://hertzen.com/experiments/jsfeedback/
He using Javascript canvas...
It worked for me
phantomjs (headless webkit) 应该可以解决这个问题。
http://phantomjs.org/
另请查看此页面(在屏幕截图实用程序下)
https://github.com/ariya/phantomjs/wiki/Related-Projects
phantomjs (headless webkit) should do the trick.
http://phantomjs.org/
also check out this page (under Screenshot Utilities)
https://github.com/ariya/phantomjs/wiki/Related-Projects