1.0.1 • Published 7 years ago
cordova-plugin-pick_cro v1.0.1
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
#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
1.0.1
7 years ago