如果它已经存在,我希望避免构建它。有谁知道 Ruby on Rails 的插件可以生成网站的屏幕截图?提前感谢任何可以帮助我找到的人。
问问题
3247 次
4 回答
3
据我所知,您需要一台带有桌面的服务器(例如 Gnome、X11、KDE)和一个安装了缩略图功能的 Web 浏览器(例如 webkit 和CutyCapt)。当然,这对于 Linux 服务器来说并不常见。
我使用了 Soufiane 建议的服务,使用基于 Peter Coopers 代码段的代码,它运行良好。
生成网站缩略图需要大量服务器资源和某种后台进程和作业队列,因此使用Web 缩略图生成服务可能是生成自己的缩略图的更好选择。
于 2009-11-16T19:40:37.953 回答
3
Yes there is a wonderful solution:
It has an great API and there are some Ruby Wrappers (i.e. http://github.com/simplificator/rwebthumb)
It allows you to process 100 thumbnails a month, if you need more the price for credits is very generous if you ask me.
于 2010-02-05T11:54:22.493 回答
1
这不是一个插件,但我发现这个片段正在使用外部站点来做你想做的事情(我认为。)。虽然我没有测试它。
于 2009-11-15T01:46:49.270 回答
0
这现在有点过时了,但只是为了后代的缘故,这里有一个答案
于 2014-03-15T03:01:09.937 回答