A COPRL presenter plugin to crop images.
Add this line to your application's Gemfile:
gem 'image_crop_presenter_plugin', git: 'https://github.com/coprl/image_crop_presenter_plugin', require: false
And then execute:
$ bundle
Example POM:
plugin :image_crop
image_crop image: 'https://cdn.mos.cms.futurecdn.net/4f6d31c116fdada59a5cb16d136e3068-970-80.jpg' do
event :change do
# handle the change event here
end
end
Use the DEMO and view source or to get started with more examples.
Bug reports and pull requests are welcome on GitHub at https://github.com/coprl/chart_presenter_plugin.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the COPRL project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.