react-native-documents / document-picker

Document Picker for React Native
https://react-native-documents.github.io/
MIT License
1.35k stars 437 forks source link

Image orientation Issue #506

Open vishalenrique opened 2 years ago

vishalenrique commented 2 years ago

Discussed in https://github.com/rnmods/react-native-document-picker/discussions/505

Originally posted by **vishalenrique** December 3, 2021 When I pick an image from gallery using this library and upload that image to a server, some of the images uploaded are in wrong orientation, but those same images are shown properly when viewed in phone's gallery or when shown within the app using Image component. Only the the images taken in left landscape seem correct in orientation, rest all of them are rotated by either 90,180 or 270 degrees. Has anyone encountered this issue? or if anyone can help on how to solve this issue? Thanks
matfin commented 2 years ago

I have encountered this issue too. When I use this package to upload an image, it appears as rotated.

When I upload the same image using 'react-native-image-picker' it's not rotated.