Image picker component problem in android 11

I am using an image picker component to pick an image from the gallery and then return the image to an image component. All images are obtained in original orientation except the ones taken from the camera of the smartphone. The images taken in landscape orientation from the camera are fine and have no issues but the images takes in portrait orientation are automatically obtained as landscapes and then when check if the image is in landscape orientation via the image editor component it returns false.

Therefore, I couldn’t find a single way to obtain an portrait image taken from the smartphone’s camera as an portrait and as not an landscape in android 11


Please help me fix this error

Thanks to the community in advance !