iPMisterX commented on issue #662:
URL: 
https://github.com/apache/cordova-plugin-camera/issues/662#issuecomment-758127566


   Now i'm use  
[cordova-plugin-crop](https://github.com/jeduan/cordova-plugin-crop) for Crop 
an image after take picture
   
   ```
   var options = {
       quality : 80,
       destinationType : Camera.DestinationType.FILE_URI,
       sourceType : Camera.PictureSourceType.CAMERA,
       encodingType: Camera.EncodingType.JPEG,
       // allowEdit : true,
       targetWidth: 500
       targetHeight: 500,
       popoverOptions: CameraPopoverOptions,
       saveToPhotoAlbum: false,
       correctOrientation: true
   };
   
   $cordovaCamera.getPicture(options).then(function(imageData) {
       plugins.crop.promise(imageData)
       .then(function success (imageCrop) {
         // Success.
         console.log('Cropped Image Path!: ' + imageCrop);
       })
       .catch(function fail (err) {
         // fail
       });
   }, function(err) {
       // An error occured. Show a message to the user
   });
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to