Which plugins/gems should I use to dynamically generate thumbnails on-the-fly in Rails 3?

后端 未结 1 1962
猫巷女王i
猫巷女王i 2021-01-15 01:58

So, the thing is. I\'m building my first rails app which reads images from a directory and it\'s subdirs. Now, I want to generate dynamic thumbnails of those images. But I d

1条回答
  •  隐瞒了意图╮
    2021-01-15 02:20

    You should rmagick coupled with Paperclip. In this way you can specify the dimensions (and many other attributes of the images), and make thumbnails on the fly.

    On top of this, I would also add in delayed_job which will background the process of the images so if any of them are provided by the client, they won't have to wait for it to complete client-side.

    rMagick : http://github.com/rmagick/rmagick

    Paperclip: http://github.com/thoughtbot/paperclip

    delayed_job: http://github.com/collectiveidea/delayed_job

    0 讨论(0)
提交回复
热议问题