Closed MGohil closed 1 year ago
This change will help fix this issue.
Created the Pull request: https://github.com/jbowmanp1107/ImageCropper.Maui/pull/5
@jbowmanp1107 : Can you please review and merge and release the new package version?
Thanks.
I will review it today :)
1.0.3
When we use this plugin in iOS and test the app in iPhone by giving the Captured image from Camera, it gives `SIGABRT: ArgumentNull_Generic Arg_ParamName_Name, image
Error: Value cannot be null. (Parameter 'image')
` Device: iPhone SE (2nd generation)
Log:
This is because, I get following exception in ImageCropper.Maui.ImageCropper class
2023-01-24 18:22:03.279 ImageCropperDemo[986:1175024] CapturePhotoAsync THREW: Could not find file '/private/var/containers/Bundle/Application/A81AA6BA-B507-41C9-A924-9428A9BA830B/ImageCropperDemo.app/559f1bf9-06d8-47dd-8b5d-1e5d55210757.png'.
Due to this iOS PlatformImageCropper -> ShowFromFile
UIImage image = UIImage.FromFile(imageFile);
image is null here.