React-native-image-crop-picker: Cropped image doesn't correspond to the selected cropping area if zoom was used

Created on 27 Feb 2020  路  12Comments  路  Source: ivpusic/react-native-image-crop-picker

Version

Tell us which versions you are using:

  • react-native-image-crop-picker v0.28.0
  • react-native v0.61.5

Platform

Tell us to which platform this issue is related

  • iOS

Expected behaviour

Even if the picture was zoomed, the resulting cropped image should correspond to the area, selected for cropping.

Actual behaviour

If the picture was first zoomed, the resulting cropped image doesn't correspond to the area, selected for cropping.

Steps to reproduce

  1. Select a picture

  2. Zoom in & select for cropping an area in the middle (in the middle is required, because moving far from the middle doesn't give such an evident effect)

  3. Crop the image & compare resulting image with area that was selected for cropping (see attached files)

Attachments

Area for cropping:
area-for-crop
Result
res

// stacktrace or any other useful debug info

Love react-native-image-crop-picker? Please consider supporting our collective:
馃憠 https://opencollective.com/react-native-image-crop-picker/donate

Most helpful comment

I am also having this issue on iOS. Sometimes though the image corresponds with the cropped image but more often it doesn't.

All 12 comments

I am seeing the same thing although sometimes it does work with zoom. Can't seem to pinpoint a reason.

I'm seeing the same thing too. It seems to happen with low-resolution images.
If I pick a high-resolution image (for example one of the default ones on iOS) it seems to work fine.

I'm getting mixed results. It definitely happens on high-res images as well. If I play with it enough I can get it to happen and not happen to the same image low or high.

Have been playing around more and confirm I can get this to happen even on the iOS simulator with the default images provided.

Also getting this issue on iOS

I am also having this issue on iOS. Sometimes though the image corresponds with the cropped image but more often it doesn't.

Also getting this issue on iOS

I haven't had much time to play with the code too much aside from a few minutes here and there to no avail but did notice this plugin uses RSKImageCropper. That plugin is an iOS framework that is very well maintained. Theres a few bugs that were fixed and closed that were related to similar but not the exact issues we are seeing. Has anyone tried forking this and updating with the latest RSKImageCropper framework?

https://github.com/ruslanskorb/RSKImageCropper

I find that the issue is gone when specifying a not too big "width" and "height".

@bradyim Thanks for the suggestion, but it does not mitigate the issue, unfortunately.

Still having this issue. Any updates?

v0.35.1 fix this, I find TOCropViewController replace RSKImageCropper, nice!

Can this be closed now that RSKImageCropper was replaced with TOCropViewController?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pavsidhu picture pavsidhu  路  3Comments

DISKONEKTeD picture DISKONEKTeD  路  3Comments

Martian2Lee picture Martian2Lee  路  3Comments

Phenek picture Phenek  路  3Comments

aterribili picture aterribili  路  3Comments