mobiliseapplabllp opened a new issue, #803:
URL: https://github.com/apache/cordova-plugin-camera/issues/803

   # Bug Report
   
   ## Problem
   Application is crashed when take picture from camera
   
   ### What is expected to happen?
   when picture is taken then image file_url show
   
   
   ### What does actually happen?
   Application is crahsed and restart automatically
   
   
   
   ## Information
   When select image from gallery it working fine
   
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
    photoOption(src, val) {
       const options: CameraOptions = {
         quality: 60,
         destinationType: this.camera.DestinationType.FILE_URI,
         encodingType: this.camera.EncodingType.JPEG,
         mediaType: this.camera.MediaType.PICTURE,
         sourceType: src,
         correctOrientation: true
       };
   
       this.camera.getPicture(options).then((imageData) => {
         this.convertImageToFile(imageData, val);
       }, (err) => {
         alert(JSON.stringify(err));
       });
     }
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you 
experiencing the issue? -->
   Android one plus nord 5
   
   
   
   ### Version information
   Ionic:
   
      Ionic CLI                     : 6.19.1 
(/usr/local/lib/node_modules/@ionic/cli)
      Ionic Framework               : @ionic/angular 5.1.1
      @angular-devkit/build-angular : 0.803.25
      @angular-devkit/schematics    : 8.3.25
      @angular/cli                  : 8.3.25
      @ionic/angular-toolkit        : 2.2.0
   
   Cordova:
   
      Cordova CLI       : 11.0.0
      Cordova Platforms : android 8.1.0
      Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, 
cordova-plugin-ionic-webview 4.1.3, (and 19 other plugins)
   
   Utility:
   
      cordova-res (update available: 0.15.4) : 0.11.0
      native-run (update available: 1.6.0)   : 1.5.0
   
   System:
   
      Android SDK Tools : 26.1.1 (/Users/apple/Library/Android/sdk/)
      ios-sim           : 8.0.2
      NodeJS            : v14.17.0 (/usr/local/bin/node)
      npm               : 8.3.0
      OS                : macOS Monterey
      Xcode             : Xcode 13.4.1 Build version 13F100
   
   
   


-- 
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.

To unsubscribe, e-mail: [email protected]

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