Image processing for Refile using MiniMagick.
gem 'refile-mini_magick'
Note that the master branch switched to using the ImageProcessing gem, which actively fixes the bugs reported on this repo, so it's recommended to pull refile-mini_magick from master:
gem 'refile-mini_magick', github: 'refile/refile-mini_magick'
The following processing helpers are provided for Refile:
- /attachments/:token/:backend_name**/convert/jpg**/:id
- /attachments/:token/:backend_name**/limit/500/500**/:id
- /attachments/:token/:backend_name**/fit/500/500**/:id
- /attachments/:token/:backend_name**/fill/500/500**/:id
- /attachments/:token/:backend_name**/pad/500/500**/:id
- /attachments/:token/:backend_name**/quality/50**/:id
- /attachments/:token/:backend_name**/resample/500/500**/:id
Refile::MiniMagick internally delegates to ImageProcessing dependency gem, so you can read documentation about these processing actions on that repository.
- Fork it ( https://github.com/refile/refile-mini_magick/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