Michaelvilleneuve / react-native-perspective-image-cropper

Perform custom crop, resizing and perspective correction 📐🖼
MIT License
306 stars 128 forks source link

Has anyone gotten the react-native-perspective-image-cropper to work according to rectangleCoordinates on iOS? #53

Open rosentoshev opened 3 years ago

rosentoshev commented 3 years ago

Hello,

I am trying to add the react-native-perspective-image-cropper on both iOS and Android and based on what somebody suggested, I have gotten the library to work on Android and crop according to the coordinates. The custom fork is here: https://github.com/rosenexpend/react-native-perspective-image-cropper. While this works as well as expected on Android, it does not crop according to coordinates on iOS. The images below shows how a receipt is supposed to be cropped on iOS based the coordinates vs. how it is actually cropped. Has anyone gotten the react-native-perspective-image-cropper to work on iOS? Thank you.

@SL-A-SH were you able to solve this?

Cropper Tool (rectangle coordinates placed on receipt): IMG_4154

Output IMG_4155

jaikumar1993 commented 3 years ago

Facing same issue after rotating the image.

rosentoshev commented 3 years ago

@jaikumar1993 I found someone's solution to fixing the issue here. However, as of this moment, I cannot get it to work myself.