Tell us to which platform this issue is related
After crop, cropRect contains correct information.
cropRect.width/height are wrong. Sometimes they are even larger than the width/height of the origainl image. cropRect.x and cropRect.y are also incorrect.
This only happened on iOS. The values are correct on Android.
ImagePicker.openCropper({
path: imagePath,
width: 100,
height: 100
}).then(result => {
console.log(result);
});
{ cropRect: { width: 400, x: 0, height: 400, y: 314 },
localIdentifier: '...',
exif: null,
width: 139,
mime: 'image/jpeg',
height: 139,
data: null,
modificationDate: null,
path: '...',
size: 8787,
sourceURL: '...',
creationDate: '1405312098' }
The values in result.cropRect are incorrect.
// 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
Is this the same as https://github.com/ivpusic/react-native-image-crop-picker/issues/843 ?
Also can anyone confirm this only started after updating your phone to iOS 12? I didn't update my app to 0.21.2 as that other issue mentions, but I seem to now be having this issue in my app.
I think it's not related to #843. After further investigation, I found it seems caused by bug introduced in newer version of the dependency library RSKImageCropper. Current version of RSKImageCropper is 2.2.1, and if I ask pod to use version 2.0.1 by adding this line to Podfile:
pod 'RSKImageCropper', '2.0.1'
then it works correctly.
When using RSKImageCropper 2.2.1, I also encountered other weird problem. When I zoom in the image and crop, sometimes the resulting cropped image will bounce back with no zoom in.
This problem also disappeared when I use 2.0.1.
@howg0924 updating the version in podfile does not fix the incorrect croprect values for me. This seems like a breaking issue. Currently sending files with sizes I can't control doesn't seem ideal.
+1
I am facing the same problem. When I want to choose a landscape image (without cropping) I am always getting a zoomed in and cropped image. The values in cropRect are larger than the Dimensions of my screen!
I also have the same problem. anyone fix it??
Any update on this ? i also have the same issue
i use react-native-image-picker to replace this lib
Hi there, is this similar to the problem I am having, and its only in ios. I cropped doesn't appear the correct one, I crop certain place in the image but it appear to be another area, and this is not only for when cropping but even without crop!! Can someone help, thanx
+1 having this issue as well.
I was able to work around this issue simply by downgrading the problematic dependency.
pod 'RSKImageCropper', '~> 2.0.1'
I have tested all releases and narrowed it down to the 2.1.0 release. Here are all the changes that were a part of 2.1.0, if anyone has Objective-C chops and some time to look into it:
https://github.com/ruslanskorb/RSKImageCropper/compare/2.0.1...2.1.0
We still have the same problem, after cropping images are zoomed in. Downgraded to 2.0.1 solved a problem for us.
Confirm that downgrading the RSKImageCropper version to 2.0.1 will resolve the issue.
Thanks. Also confirming that downgrading the RSKImageCropper version to 2.0.1 will resolve the issue.
RSKImageCropper is not used anymore. please try latest version with TOCropViewController
Most helpful comment
+1 having this issue as well.
I was able to work around this issue simply by downgrading the problematic dependency.
pod 'RSKImageCropper', '~> 2.0.1'I have tested all releases and narrowed it down to the 2.1.0 release. Here are all the changes that were a part of 2.1.0, if anyone has Objective-C chops and some time to look into it:
https://github.com/ruslanskorb/RSKImageCropper/compare/2.0.1...2.1.0