callstack / react-native-image-editor

A library providing an API for cropping images from the web and the local file system.
MIT License
366 stars 117 forks source link

fix: Cropping an image while considering ExifInterface.TAG_ORIENTATION on Android #133

Closed retyui closed 5 months ago

retyui commented 5 months ago

Summary

After merging this PR users will be able to crop images with different exif orientation

image

read more: https://jdhao.github.io/2019/07/31/image_rotation_exif_info/

Test plan

Orientation (0, 90, 180, 270):

Before After
https://github.com/callstack/react-native-image-editor/assets/4661784/47e396ed-03f1-41b7-a395-aae56ac71c47 https://github.com/callstack/react-native-image-editor/assets/4661784/384ff6de-d6be-4964-b047-c1a8e05ab029
retyui commented 5 months ago

an issue with RN-vision-camera:

UPD: known issue, not a blocker: https://github.com/mrousavy/react-native-vision-camera/issues/2515