Skip to content

Latest commit

 

History

History
55 lines (34 loc) · 995 Bytes

README.md

File metadata and controls

55 lines (34 loc) · 995 Bytes

cordova-plugin-crop

Crop an image in a Cordova app

-Made the color in Android programmable -For iOS, added this: kishikawakatsumi/PEPhotoCropEditor#52 And: kishikawakatsumi/PEPhotoCropEditor#51 (comment)

Install

$ cordova plugin add --save cordova-plugin-crop

Usage

plugins.crop(function success () {

}, function fail () {

}, '/path/to/image', options)

or, if you are running on an environment that supports Promises (Crosswalk, Android >= KitKat, iOS >= 8)

plugins.crop.promise('/path/to/image', options)
.then(function success (newPath) {

})
.catch(function fail (err) {

})

API

  • quality: Number

The resulting JPEG quality. default: 100

Libraries used

License

MIT © Jeduan Cornejo