An integration for Carrierwave with Storm (Steak ORM). Include the gem and everything works as normal - see carrierwave docs for how to configure.
Things we have added to Carrierwave
Have retina images automatically created for all of your versions. We follow apple's naming convension, ie.
- normal image: my_image.jpg
- x2 retina: my_image@x2.jpg
- x3 retina: my_image@x3.jpg
All you need to do is:
- extend your uploader with
CarriwerWave::Storm::Processors
- call
retina!
class LogoUploader < CarrierWave::Uploader::Base
extend CarrierWave::Storm::Processors
retina!
version :my_version do
process resize_to_fit: [250, 150]
end
end
Add this line to your application's Gemfile:
gem 'carrierwave-storm'
And then execute:
$ bundle
Or install it yourself as:
$ gem install carrierwave-storm
TODO: Write usage instructions here
- Fork it ( https://github.com/[my-github-username]/carrierwave-storm/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request