是否有可用的 Ruby on Rails 站点缩略图生成器?

发布于 2024-08-11 08:21:00 字数 77 浏览 2 评论 0 原文

如果它已经存在,我希望避免构建它。有谁知道 Ruby on Rails 的插件可以生成网站的屏幕截图吗?预先感谢任何可以帮助我找到一个的人。

I'm hoping to avoid building this if it already exists. Does anyone know of a plugin for Ruby on Rails that will generate a screenshot of a web site? Thanks in advance to anyone who can help me find one.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

幻梦 2024-08-18 08:21:00

据我所知,您需要一台带有桌面的服务器(例如 Gnome、X11、KDE)和一个安装了缩略图功能的 Web 浏览器(例如 webkit 和 CutyCapt)。当然,这对于 Linux 服务器来说并不常见。

我已经使用了 Soufiane 建议的服务,使用基于 Peter Coopers 片段的代码,并且效果非常好。

生成网站缩略图需要大量的服务器资源以及某种后台进程和作业队列,因此使用 网络缩略图生成服务可能是生成自己的缩略图的更好替代方案。

As far as I am aware you need a server with a desktop (eg. Gnome, X11, KDE) and a web browser with thumbnail capabilities installed (eg. webkit and CutyCapt). Of course this is not usual for a Linux server.

I have used the service suggested by Soufiane using code based on Peter Coopers snippet and it works very well.

Generating website thumbnails would require significant server resources and some sort of background process and job queue so using a web thumbnail generation service might be a better alternative to generating your own.

各自安好 2024-08-18 08:21:00

是的,有一个很棒的解决方案:

http://webthumb.bluga.net/

它有一个很棒的 AP​​I,并且有一些 Ruby 包装器(即 http://github.com/simplificator/rwebthumb

它允许您每月处理 100 个缩略图,如果您需要更多,如果您问我的话,积分价格非常慷慨。

Yes there is a wonderful solution:

http://webthumb.bluga.net/

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.

信仰 2024-08-18 08:21:00

这不是一个插件,但我发现 这个片段 它使用外部网站来做你想做的事(我认为)。不过我没有测试过。

This is not a plugin, but I found this snippet which is using an external site to do what you want (I think.). I didn't test it though.

猫性小仙女 2024-08-18 08:21:00

现在有点过时了,但为了后代的缘故,这里有一个答案

This is getting a little dated now, but just for posterity's sake there is an answer over here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文