marioklaver opened a new issue, #801:
URL: https://github.com/apache/cordova-plugin-camera/issues/801
# Bug Report
## Problem
I have an Android tablet (Zebra T51 with android 10)I. If I have the tablet
in landscape mode and take a picture, the picture is upside down. If I have the
tablet in portrait mode and take a picture, the picture is 90 degrees rotated.
In the preview in the camera app everything looks fine, but when I accept the
photo and return to my cordova app, the picture is rotated.
### What is expected to happen?
I expect the photo to be oriented as in the preview of the camera app.
### What does actually happen?
The photo is 90 or 180 degrees rotated
## Information
$ cordova platform ls
Installed platforms:
android 10.1.2
cordova-plugin-camera: ^6.0.0
### Command or Code
navigator.camera.getPicture(
(imageData) => {
onGetPictureSuccess({ dataURL:
`data:image/jpeg;base64,${imageData}`, photoUuid: uuid() });
},
onGetPictureFail,
{
quality: 25,
destinationType: Camera.DestinationType.DATA_URL,
cameraDirection: Camera.Direction.BACK,
correctOrientation: false,
},
);
I used all kind of cameraOptions but nothing seems to work.
### Environment, Platform, Device
<!-- In what environment, on what platform or on which device are you
experiencing the issue? -->
Android 10 tablet (Zebra T51)
cordova: 11.0.0
cordova-android 10.1.2
cordova-plugin-camera: 6.0.0
### Version information
<!--
What are relevant versions you are using?
For example:
Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins
Other Frameworks: Ionic Framework and CLI version
Operating System, Android Studio, Xcode etc.
-->
## Checklist
<!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
- [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.
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]