🐛 [Android] Getting Wrong Orientation of Picture when coming back from Gallery screen #3340
Open
3 of 5 tasks
Labels
🐛 bug
Something isn't working
What's happening?
react-native-vision-camera@4.6.3.webm
When the camera is opened in landscape mode and a picture is taken, the image orientation is correctly set to landscape. However, if the user views the image by clicking the gallery button, navigates to the gallery screen, and then returns to the camera screen (via the cross button) to take another picture in landscape mode, the orientation of the captured image changes incorrectly from landscape to portrait.
Steps to Reproduce:
Open the camera in landscape mode.
Capture a picture in landscape orientation.
Tap the gallery button to view the captured image on the gallery screen.
Return to the camera screen by clicking the cross button in the gallery screen.
Take another picture in landscape mode.
Observed Behavior:
The orientation of the second image changes to portrait instead of remaining in landscape mode.
Expected Behavior:
The orientation of all captured images should remain consistent with the device's orientation at the time of capture, i.e., landscape mode should result in landscape-oriented images.
Reproduceable Code
Relevant log output
Camera Device
Device
Redmi Note 13 (Android)
VisionCamera Version
4.6.3
Can you reproduce this issue in the VisionCamera Example app?
I didn't try (⚠️ your issue might get ignored & closed if you don't try this)
Additional information
The text was updated successfully, but these errors were encountered: