开发者

Is there a Ruby on Rails site thumbnail generator available?

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.


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.


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.


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.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜