jbowmanp1107 / ImageCropper.Maui

MIT License
43 stars 10 forks source link

Crop Image not able to show in image in page. #1

Closed Navneet61940 closed 1 year ago

Navneet61940 commented 1 year ago

@jbowmanp1107

Please check it.

I get error image not found exception on success path.

Screenshot_20221215_044912

MGohil commented 1 year ago

@jbowmanp1107 : I also get this error. It should I think return the full path of the image but returns the partial path where it creates the issue of not able to display the image and throws this error.

Would you please look for this issue?

However, it works good in iOS returning the full path of the cropped image.

Thank you.

EDIT: To fix this issue: Go to Library/ImageCropper.Maui/Platforms/Android/Platform.cs Replace result.UriContent?.Path with result.GetUriFilePath(activity, true)

Where activity is your MauiAppCompatActivity instance.

jbowmanp1107 commented 1 year ago

Thanks for letting me know! I will look into getting this fixed!

jbowmanp1107 commented 1 year ago

Please try 1.0.1

MGohil commented 1 year ago

@jbowmanp1107 : Thanks for the fix. This fixed problem in Android but raised https://github.com/jbowmanp1107/ImageCropper.Maui/issues/2 in iOS platform.

Is iOS working good from your side?