Cropper.js is simple javaScript image cropper.
jQuery Cropper is a jQuery plugin wrapper for Cropper.js.
The cropper_rails gem integrates the Cropper.js library and jQuery Cropper plugin with the Rails asset pipeline.
Add cropper_rails to your Gemfile and run bundle install:
gem 'cropper_rails'Add the following to your app/assets/javascripts/application.js:
//= require cropper
//= require jquery-cropperAdd to your app/assets/stylesheets/application.css:
*= require cropperBug reports and pull requests are welcome on GitHub at https://github.com/d1ceward/cropper_rails. By contributing you agree to abide by the Code of Merit.
Everyone interacting in the cropper_rails project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.