You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use the react-native-camera take a photo,
and then i use ImageEditor.cropImage to crop the photo for id card part,
i just set cropData with offset size but ,i always get the target height but the width can't cut off
version: 0.52.0
phone android 9
Expected Behavior
just crop the target Rect .
Code Example
Environment
The text was updated successfully, but these errors were encountered:
Can you run react-native info and edit your issue to include these results under the Environment section?
If you believe this information is irrelevant to the reported issue, you may write `[skip envinfo]` alongside an explanation in your Environment: section.
i have got it, is the react-native-camera make the image portrait and landscape different every time, and config with orientation:RNCamera.Constants.Orientation.portrait.
but still have a question is that the crop is use int size ,but my React nedd indeed is float , the bound will not well
Hi @liangguohun, thanks for reporting this issue. I'm closing it as you seem to have resolved your initial problem/question. You remaining question looks more suited for Stackoverflow, but let me know if I interpreted it wrong.
🐛 Bug Report
To Reproduce
I use the react-native-camera take a photo,
and then i use ImageEditor.cropImage to crop the photo for id card part,
i just set cropData with offset size but ,i always get the target height but the width can't cut off
version: 0.52.0
phone android 9
Expected Behavior
just crop the target Rect .
Code Example
Environment
The text was updated successfully, but these errors were encountered: