New issue
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃悰 [V4][Android] - The returned captured image dimensions is different from the output of Image.getSize
#2803
Comments
I use According to
We set |
@mrousavy I tried to debug both source code and didn't any valid conclusion. The same app login in V3 works fine. I noted that when react load the exif to get the orientation, I have the following results.
Which is different from V3 :
Exif metadata are read here in react |
hmm, interesting. Orientation is still something that's not fully supported (See #1891) - so I don't really have a lot of insights, other than that I'd be confident that CameraX' EXIF writer is probably a bit more battletested than the one I wrote in V3. So V4 should be correct, anything that's incorrect should probably be reported in the Google Issue Tracker, they test on a lot of devices. I only have 3 phones. |
Okay, I will dig more into it and check with a sample CameraX native app. And submit an issue if necessary. |
Image.getSize
馃悰 Image.getSize
I even feel that it's a bug in react-native, because loading the image without even using the camera cause the issue. |
What's happening?
Hello!
In my recent try to update to the latest v4.0.1.
I am encountering a weird issue when the orientation prop is set to landscape-left.
The image dimension produced by camera.takePhoto() doesn't match the output of the react-native api Image.getSize. I suspect that wrong metadata are set in this case?
All ohter values for the orientation props are okay.
You can check the following video that showcase the issue. Writtent in red :
Note: I reproduce in the example app if I change the orientation prop and console log the Image.getSize output.
orientation_prop_issue.mov
Reproduceable Code
Relevant log output
Camera Device
Device
Galaxy S9 - SM-G960F (Android 10, One UI 2.5)
VisionCamera Version
4.0.1
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: