We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I use Samsung s10 device with Android 10 to take photo and save it to the gallery
the result of .takePhoto():
.takePhoto()
file.height: 3024 file.width: 4032 file.orientation: "landscape-right"
but when I checked the photo in the gallery I see a different information width:3024 x height:4032
width:3024 x height:4032
I think need to take in account an exif orientation and swap a dimension like here: react-native-image-picker/react-native-image-picker@13cdc7c
const file = await camera.current.takePhoto() await CameraRoll.save(`file://${file.path}`, { type: 'photo', })
takePhoto file { "isMirrored": false, "path": "/data/user/0/com.rn73/cache/mrousavy5871214620613999683.jpg", "isRawPhoto": false, "height": 3024, "orientation": "landscape-right", "width": 4032 }
{ "formats": [], "sensorOrientation": "landscape-right", "hardwareLevel": "full", "maxZoom": 8, "minZoom": 1, "maxExposure": 20, "supportsLowLightBoost": true, "neutralZoom": 1, "physicalDevices": [ "wide-angle-camera" ], "supportsFocus": true, "supportsRawCapture": true, "isMultiCam": false, "minFocusDistance": 10, "minExposure": -20, "name": "BACK (0)", "hasFlash": true, "hasTorch": true, "position": "back", "id": "0" }
Samsung s10
3.8.2
Yes, I can reproduce the same issue in the Example app here
The text was updated successfully, but these errors were encountered:
Orientation is tracked here: #1891
You're getting width and height in natural sensor orientation. At the moment, proper orientation is not yet implemented.
Sorry, something went wrong.
well I funded 69$, I hope it might be fixed soon
Thank you! Yea, stability issues are first priority now, then we'll see about orientation :)
No branches or pull requests
What's happening?
I use Samsung s10 device with Android 10 to take photo and save it to the gallery
the result of
.takePhoto()
:but when I checked the photo in the gallery I see a different information
width:3024 x height:4032
I think need to take in account an exif orientation and swap a dimension like here: react-native-image-picker/react-native-image-picker@13cdc7c
Reproduceable Code
Relevant log output
Camera Device
Device
Samsung s10
VisionCamera Version
3.8.2
Can you reproduce this issue in the VisionCamera Example app?
Yes, I can reproduce the same issue in the Example app here
Additional information
The text was updated successfully, but these errors were encountered: