Skip to content

supership-jp/refile-mini_magick

 
 

Repository files navigation

Refile::MiniMagick

Image processing for Refile using MiniMagick.

Installation

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'

Usage

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.

Contributing

  1. Fork it ( https://github.com/refile/refile-mini_magick/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

About

Image processing via MiniMagick for Refile

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%