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

Fix camera orientation on Android #6729

Merged
merged 1 commit into from
Nov 25, 2024
Merged

Fix camera orientation on Android #6729

merged 1 commit into from
Nov 25, 2024

Conversation

gaearon
Copy link
Collaborator

@gaearon gaearon commented Nov 25, 2024

Fixes a bug where using the camera button would produce a stretched image on Android. The issue was that the width/height were misreported by not taking the EXIF tags into account. The iOS version does this correctly.

Upstream PR: ivpusic/react-native-image-crop-picker#2110

Test Plan

Try taking a camera image in all orientations (landscape/rotate with both front/back camera), verify it appears correctly both before posting (in the composer preview) and after posting.

@mozzius mozzius force-pushed the fix-camera-orientation branch from b61f13b to 1fb4c90 Compare November 25, 2024 20:33
@arcalinea arcalinea temporarily deployed to fix-camera-orientation - social-app PR #6729 November 25, 2024 20:34 — with Render Destroyed
Copy link
Member

@mozzius mozzius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good stuff. fixes the orientation that was broken before, unsure how to trigger all cases but I feel good enough to stamp

@gaearon gaearon merged commit 61e97d6 into main Nov 25, 2024
@gaearon gaearon deleted the fix-camera-orientation branch November 25, 2024 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants