Closed olcaneristi closed 4 months ago
Ah, I made a huge mistake. Instead of resizing the URI directly, I resized the base64 format with react-native-image-resizer. That's why the base64 format produced by RNFS rotates 90 degrees after resize and gets corrupted. There was no problem with react-native-camera-kit. It's entirely my fault. Please ignore this issue.
Describe the bug When I convert the photo I took on Android devices such as Oppo and Samsung to Base64 with react-native-fs, then send to Backend as base64, it rotates 90 degrees.
To Reproduce Steps to reproduce the behavior:
1- Setup the with props like ref, cameraType,
2- Configure the cameraRef.capture,
3- Convert uri to base64 with react-native-fs
Expected behavior 1- Taking photo on Portrait mode, 2- Convert to base64 with react-native-fs, 3- Get Base64 version of taken photo with no rotation.
Screenshots![Screenshot 2024-02-04 at 02 00 03](https://github.com/teslamotors/react-native-camera-kit/assets/45832621/0cc0e4f2-e4f9-46cf-a036-0c8250453d9e)
Smartphone (please complete the followig information):
Additional context When I capture the photo and convert to base64 with react-native-fs, then send to Backend as a base64 format, it rotates to 90 degree. I add the screenshots above.