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

Inconsistent Image Rotation Behaviour Across Devices When Using Rotation Angle in Portrait Mode #414

Open
Vinayak118 opened this issue Oct 22, 2024 · 0 comments

Comments

@Vinayak118
Copy link

I am encountering inconsistent behavior when using the @bam.tech/react-native-image-resizer
package for image resizing with rotation angle across different devices. Specifically, when capturing an image in portrait mode:

On some Android devices, the image appears rotated to landscape (left) when I pass a rotation angle, even though it should remain in portrait. On other devices, the rotation works correctly.

If I pass 0 as the rotation angle, the behavior is reversed, with the image appearing correct on devices where it was previously incorrect. However, passing 0 works consistently on iOS devices.

This inconsistency in image orientation is making it difficult to ensure proper handling across all platforms. Any insight or solution to resolve this issue would be appreciated. I'm attaching the code for your reference.

Screenshot 2024-10-22 at 7 12 26 PM

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

No branches or pull requests

1 participant