Skip to content
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

Closed
wants to merge 4 commits into from

Conversation

yujiayinshi
Copy link

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.

@facebook-github-bot facebook-github-bot added GH Review: review-needed CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. labels Feb 7, 2017
@yujiayinshi
Copy link
Author

anyone can help review ?

@hramos
Copy link
Contributor

hramos commented Apr 27, 2017

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 shergin self-requested a review May 25, 2017 07:19
@shergin shergin added the Platform: iOS iOS applications. label May 25, 2017
@doochik
Copy link
Contributor

doochik commented Jul 16, 2017

@shergin Hi! Any chance to see this PR merged? I also have this bug with photo orientation and this patch works for me.

@hramos
Copy link
Contributor

hramos commented Jul 17, 2017

@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.

@hramos hramos closed this Jul 17, 2017
@doochik
Copy link
Contributor

doochik commented Jul 17, 2017

@hramos Ok, I've opened new PR #15060

facebook-github-bot pushed a commit that referenced this pull request Jul 25, 2017
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
AntiPaste pushed a commit to TaitoUnited/react-native that referenced this pull request Aug 23, 2017
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Platform: iOS iOS applications.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants