Rack::GridFSThumb
Rack::GridFSThumb is Rack middleware for resizing images served via Rack::GridFS. Resizing is done via MiniMagick and all the usual geometry arguments are accepted.
For example:
GET /gridfs/someobjectid/100x100
Installation
gem install rack-gridfs-thumb
Usage
require 'rack/gridfs-thumb'
use Rack::GridFSThumb, :prefix => 'gridfs', :hostname => 'localhost', :port => 27017, :database => 'test'
See the Rack::GridFS README for all available options.