Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image cropper doesn't seem to work on MAUI iOS #390

Open
MarkUngvari opened this issue Nov 28, 2024 · 0 comments
Open

Image cropper doesn't seem to work on MAUI iOS #390

MarkUngvari opened this issue Nov 28, 2024 · 0 comments

Comments

@MarkUngvari
Copy link

Describe the bug
When I try to call the await cropperComponent!.GetImageUsingStreamingAsync(imageFile, imageFile.Size); in MAUI iOS it seems to hang forever without any meaningful error messages to be seen anywhere. The weird thing is it works on the regular Blazor app (I have two projects, a regular Blazor and a Blazor MAUI hybrid), it works on android, and it works on the windows app version, but it fails on iOS both on a device and on a simulator.

The weird thing is that it used to work without any problem in the past and it popped up recently. I believe I updated both to .NET 8 and updated the package as well.

To Reproduce

  1. Create a MAUI project with the library imported
  2. Have an existing picture loaded into the cropper
  3. Create a component and use an InputFile Blazor component to get a picture from the device
  4. Try to get the image with ````await cropperComponent!.GetImageUsingStreamingAsync(imageFile, imageFile.Size);```
  5. Nothing happens and the async method just kepps "loading"

Expected behavior
I expected the async method to eventually return but after 5 minutes I didn't wait any longer.

Smartphone:

  • Device: iPhone 15 and 16
  • OS: iOS 17.5 and iOS 18.1
  • Package Version 1.3.1 and 1.3.4

Additional context
When I construct my own data URL via streams and attept to update the Src property of the cropper then it loads the picture but in a semi unloaded state. It squishes the picture, doesn't diplay the cropper itself, can't be interacted with and can't export the image itself so it just gets stuck.

Thank you for this amazing package by the way and for your time if you are able to look into this. 😄
Cheers,
Mark

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant