Skip to content

samikha/cordova-plugin-crop

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Crop an image in Cordova

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 91.3%
  • Java 7.2%
  • JavaScript 1.5%