1

I use react-native-perspective-image-cropper package to crop image dynamically, and it’s work absolutely fine. But sometime when the cropping area overlay are outside of the image and I try to crop the image then it add the white background to replace the outside of the image area.

in Android it not add any white background but in IOS I face this issue.

enter image description here

enter image description here

Yogendra Patel
  • 813
  • 2
  • 8
  • 24

1 Answers1

-1

You need to make sure that the coordinates aren't bigger than the height/width of the image. It doesn't make sense to crop outside of the image itself.

romin21
  • 1,532
  • 1
  • 14
  • 35