-
Notifications
You must be signed in to change notification settings - Fork 24.1k
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
ImagePickerIOS take photo with wrong orientation #12249
Conversation
ImagePickerIOS take photo save orientation info
anyone can help review ? |
Hey! I've been going through PRs and would like to get this one moving. Two things stand out to me: there is no test plan, and there is no example of what happens prior to the fix. Ideally your PR would include all of the sections listed in the PR template. This will help us gauge the extent of the problem as well as understand how the fix was tested. |
@shergin Hi! Any chance to see this PR merged? I also have this bug with photo orientation and this patch works for me. |
@doochik see my comment above, this PR lacks a test plan. Since there has been no response from the author, I'll close it. Feel free to open a new PR if you feel strongly about getting this merged. |
Summary: Original PR: #12249 ImagePickerIOS saves photos to ImageStoreManager without meta information. So photo has wrong orientation. **Test plan** 1. Take the 2 photos (in landspape and portrait orientation) with this code: ``` ImagePickerIOS.openCameraDialog( {}, (uri) => CameraRoll.saveToCameraRoll(uri), () => {} ); ``` 2. Ensure that photos in Photos app have right orientation. Closes #15060 Differential Revision: D5487595 Pulled By: shergin fbshipit-source-id: ce1a47f4d5ba33e03070f318f3d6a8dd0df5ab88
Summary: Original PR: facebook#12249 ImagePickerIOS saves photos to ImageStoreManager without meta information. So photo has wrong orientation. **Test plan** 1. Take the 2 photos (in landspape and portrait orientation) with this code: ``` ImagePickerIOS.openCameraDialog( {}, (uri) => CameraRoll.saveToCameraRoll(uri), () => {} ); ``` 2. Ensure that photos in Photos app have right orientation. Closes facebook#15060 Differential Revision: D5487595 Pulled By: shergin fbshipit-source-id: ce1a47f4d5ba33e03070f318f3d6a8dd0df5ab88
When using ImagePickerIOS camera take photo, photos only have landscape orientation, which is not matched with fact.
So I add a function to save orientation info.