jasonsultana commented on issue #587:
URL: 
https://github.com/apache/cordova-plugin-camera/issues/587#issuecomment-619326820


   # Bug Report
   ## Problem
   ### What is expected to happen?
   No Android exceptions being thrown regardless of property values of 
CameraOptions passed to `navigator.camera.getPicture(...)`
   
   ### What does actually happen?
   "System.err: java.io.IOException: ExifInterface only supports saving 
attributes on JPEG formats." is thrown.
   
   ## Information
   See full stack trace in first comment. I noticed that setting the quality to 
100 and `correctOrientation` and `saveToPhotoAlbum` to false fixed the problem.
   
   ### Command or Code
   Passing case:
   ```
   navigator.camera.getPicture( cameraSuccess, cameraError, { quality: 100, 
destinationType: Camera.DestinationType.FILE_URI, correctOrientation: false, 
saveToPhotoAlbum: false });
   ```
   
   Failing case:
   ```
   navigator.camera.getPicture( cameraSuccess, cameraError, { quality: 50, 
destinationType: Camera.DestinationType.FILE_URI, correctOrientation: false, 
saveToPhotoAlbum: false });
   ```
   
   Changing the other bools to true (even with a 100 quality) also fails.
   
   ### Environment, Platform, Device
   Android, Genymotion Emulator, Samsung Galaxy S9
   
   ### Version information
   Phonegap 8.2.2
   OSX 10.15.4
       <plugin name="cordova-plugin-camera" spec="4.1.0">
           <variable name="ANDROID_SUPPORT_V4_VERSION" value="27.+" />
       </plugin>
   
   ## Checklist
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


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