-
Notifications
You must be signed in to change notification settings - Fork 586
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FrontCamera shows upside-down image in <image> tag #67
Comments
Hi @sorabhsahu, thanks for trying this library. Thanks in advance. |
@gran33 |
@gran33 I just tried to run on Nexus device and the camera (back or front) is correct not rotated like in xiaomi device. I tried to turn off mirror image in the camera phone setting but it still no change |
Hi @kriptonhaz use https://github.com/react-community/react-native-image-picker , It's simple to implement. |
I've done a bit of digging on this and for some reason if the Exif orientation tag is included and the photo is taken with the front-facing camera it is always flipped 180 deg. This behavior originates from this commit: e33b3dd My Nexus phone doesn't include Exif orientation data (it handles rotating the bitmap itself) so the rotation step is skipped which explains why this affects some phones but not oethers. I'm not sure why this behavior was added and what research it was based on but it doesn't seem to make sense to me. I'd be surprised if the majority of front-facing cameras create the image flipped by 180 degrees by default. |
@gran33 I am facing the same issue. Image comes as upside down from front camera. Is there any solution for this? |
Not using this god forsaken package is the solution |
Or try with my fork, https://github.com/filipef101/react-native-camera-kit it might be fixed, I also exposed a few native methods on android to check if flash exists and other stuff |
Any update? |
any update? |
Hello, any update on this ?? using react-native-camera-kit V8.0.4, This fix Fix didn't work, it turn image sideway |
FrontCamera show upside-down image in tag
The text was updated successfully, but these errors were encountered: