Has anyone faced similar issues where the camera image gets rotated by 90 degrees after being captured using expo-image-picker package ?
Below is my code
let result = await launchImageLibraryAsync({
mediaTypes: MediaTypeOptions.Images,
allowsEditing: true,
aspect: [4, 3],
quality: 1,
})
console.log(result)
if (result.cancelled === false) {
setCurrentImage(result)
}
}
const takePicture = async () => {
const result = await launchCameraAsync({
allowsEditing: false,
aspect: [4, 3],
})
console.log(result)
if (result.cancelled === false) {
setCurrentImage(result)
}
}```
CodePudding user response:
You can check the response that you get after take the picture and if the rotation is 90 you can use react-native-image-resizer to change it, maybe you only have this problem on Android or ios too?
CodePudding user response:
Issue has been resolved by rebuilding my app after I install ImageManipulator