项目作者: D1ceWard

项目描述 :
Integrate Cropper library into Rails asset pipeline
高级语言: Ruby
项目地址: git://github.com/D1ceWard/cropper_rails.git
创建时间: 2018-09-13T13:19:15Z
项目社区:https://github.com/D1ceWard/cropper_rails

开源协议:MIT License

下载


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:

  1. gem 'cropper_rails'

Include cropper_rails javascript assets

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

  1. //= require cropper
  2. //= require jquery-cropper

Include cropper_rails stylesheet assets

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

  1. *= 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.