0.0
Low commit activity in last 3 years
No release in over a year
Cropper is a simple image cropping library. This gem integrates Cropper with Rails asset pipeline for ease of use.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 2.2.33

Runtime

 Project Readme

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.