1.0.1 • Published 7 years ago

cordova-plugin-crop-pick v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
7 years ago

cordova-plugin-pick-crop

This is a cordova plugin for pick and crop photo. Just support android and ios.

#Install cordova plugin add https://github.com/huangliop/cordova-plugin-pick-crop.git #Screen Shoot

android-3 android-4 android-1 android-2

#Usage

##Just pick a photo

 /**
     * just pick a image ,dont crop it
     * @param {[[Type]]} params   
     * @param {[[Type]]} success [[success callback function]]
     * @param {[[Type]]} error   [[error callback function]]
     */
plugins.pickCrop.pick({
   height:500, 
   quality:75
},function(result){
    //"result" is base64 string of result photo
},function(error){
    console.error(error);
})   

##Pick and Crop a photo

 /** 
     * @param {[[Type]]} params  [[set the result image's height]]
     * @param {[[Type]]} success [[success callback function]]
     * @param {[[Type]]} error   [[error callback function]]
     */
plugins.pickCrop.crop({
   height:500,
   quality:75
},function(result){
    //"result" is base64 string of result photo
},function(error){
    console.error(error);
})   

#License This android is based on android-crop