You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2022/07/20 18:30:43 UTC

[GitHub] [cordova-plugin-camera] marioklaver opened a new issue, #801: On android tablet photo is 90 or 180 degrees rotated when I take a picture

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: issues-unsubscribe@cordova.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-camera] cumpstey commented on issue #801: On android tablet photo is 90 or 180 degrees rotated when I take a picture

Posted by GitBox <gi...@apache.org>.
cumpstey commented on issue #801:
URL: https://github.com/apache/cordova-plugin-camera/issues/801#issuecomment-1276166339

   I reported this to Zebra for a TC21. It was a bug in their camera app - it wasn't correctly adding exif orientation metadata to the image. They fixed it, but presumably not for all their devices if you're having trouble with a different model.


-- 
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: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Re: [I] On android tablet photo is 90 or 180 degrees rotated when I take a picture [cordova-plugin-camera]

Posted by "mariusvn (via GitHub)" <gi...@apache.org>.
mariusvn commented on issue #801:
URL: https://github.com/apache/cordova-plugin-camera/issues/801#issuecomment-1827570430

   `correctOrientation` must be set to true


-- 
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: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-camera] giuliastully commented on issue #801: On android tablet photo is 90 or 180 degrees rotated when I take a picture

Posted by GitBox <gi...@apache.org>.
giuliastully commented on issue #801:
URL: https://github.com/apache/cordova-plugin-camera/issues/801#issuecomment-1337133212

   Hi, I have the same problem for smartphones with Android 13.
   How can I do?


-- 
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: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org