Skip to content

Automatically generates retina versions of your uploaded images

License

Notifications You must be signed in to change notification settings

jhnvz/carrierwave_retina

Repository files navigation

CarrierWave Retina Build Status

Automatically generates retina versions of your uploaded images

This project has been merged in https://github.com/jhnvz/retina_rails

It will not be maintained anymore

Installation

  1. Add gem 'carrierwave_retina' to your Gemfile.
  2. Run bundle install.
  3. Add //= require retina to your Javascript manifest file (usually found at app/assets/javascripts/application.js).
  4. Add include CarrierWaveRetina::Optimizer to the bottom of your uploader
class ExampleUploader < CarrierWave::Uploader::Base

  version :small do
    process :resize_to_fill => [30, 30]
  end

  include CarrierWaveRetina::Optimizer

end

Note on Patches/Pull Requests

  • Fork the project.
  • Make your feature addition or bug fix.
  • Add tests for it. This is important so I don't break it in a future version unintentionally.
  • Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
  • Send me a pull request. Bonus points for topic branches.

Copyright

Copyright (c) 2012 Johan van Zonneveld. See LICENSE for details.

About

Automatically generates retina versions of your uploaded images

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages