Sha256: a9804ed04a964f865157390c154d1d000b736c01ab60d55d66c9af2dd1bc35eb
Contents?: true
Size: 905 Bytes
Versions: 1
Compression:
Stored size: 905 Bytes
Contents
light-resizer ============= [](https://travis-ci.org/Rademade/light_resizer) Rack middleware for image resizer. Can be integrated with CarrierWave. Instalation =========== Install gem: $ gem install light_resizer And set it in config: ```ruby config.middleware.insert_before(Rack::Sendfile, LightResizer::Middleware, Rails.root) ``` Usage ===== For example we have image in public folder by next url: >example.com/images/kitten.jpg Url of resized image will be: >example.com/images/**light_resize/100x150/kitten.jpg** light_resizer will find */public/images/kitten.jpg* and create *light_resize* with resized to size of 100x150px image. Default resize doesn't crop image and fill new space with transparent background. To crop image use '*crop*' in url: >example.com/images/light_resize/crop/100x150/kitten.png
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
light_resizer-0.2.0 | README.md |