Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

⚠️ this project is not longer maintained - Crop an image in Cordova

License

Notifications You must be signed in to change notification settings

Nexxa/cordova-plugin-crop

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-plugin-crop

Crop an image in a Cordova app

Install

$ cordova plugin add --save https://github.com/Nexxa/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) {})

Options

  • {Number} [quality=100] - The resulting JPEG quality.
  • {Number} [toSize=1080] - Resize image to specified size

Libraries used

Authors

License

MIT

About

⚠️ this project is not longer maintained - Crop an image in Cordova

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 90.3%
  • Java 7.6%
  • JavaScript 2.1%