Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

d1ceward/cropper_rails

Repository files navigation

Cropper for Rails

Gem Version Maintenance

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.

Installation

Install cropper_rails gem

Add cropper_rails to your Gemfile and run bundle install:

  gem 'cropper_rails'

Include cropper_rails javascript assets

Add the following to your app/assets/javascripts/application.js:

  //= require cropper
  //= require jquery-cropper

Include cropper_rails stylesheet assets

Add to your app/assets/stylesheets/application.css:

  *= require cropper

Contributing

Bug 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.

Code of Conduct

Everyone interacting in the cropper_rails project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

About

Integrate Cropper library into Rails asset pipeline

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Languages