-
Notifications
You must be signed in to change notification settings - Fork 14
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
WPF Hybrid: change copper src image old image #309
Comments
Hi @LeeCY-C you should use 'Replace' or 'Change' functionality instead of changing src image: https://cropperblazor.github.io/examples/replacing#simple-usage, https://cropperblazor.github.io/examples/rebuild#simple-usage. In addition, you can see example of code from demo site:
|
This is my change image code.
|
@LeeCY-C I memorize in old versions library we have that issue. Could you check your version of library or try to update and use newest version? In addition, could you provide temporary project with reproduce of bug to check it? Moreover, verify cropper component parameters: IsAvailableInitCropper, IsErrorLoadImage and so on... Maybe, you can find the answer this following conversation: #150 |
CopperTestFor#309.zip |
Hi @LeeCY-C in your case you should set up |
@LeeCY-C sometimes in your example project I have the same error for specific images, I have no clue in this moment why it's happened, I suppose it's a problem with hybrid WebView in WPF. I'm would investigate about this issue in multiple platforms. In your case, I'm recommended try to use rebuild cropper functionality: https://cropperblazor.github.io/examples/rebuild#simple-usage. Code:
Although you will have the same result. In addition, you need to add a style so that during processing (loading) the image is not be too large during processing in the cropper when changing the image |
Thank you for your patient guidance. Now it work well. |
Hi @LeeCY-C . I'm figure out why it's not working correctly in hybrid with WPF .net6 based on WebView2. I think it's a very specific problem in this platform, because we don't test on this platform and use Cropper.Blazor library. Overall, I see what caused this problem:
In general, it was a great solution to clean the redundant resource(s) (blobs) in |
Describe the bug
load default image and first change image is no problem.
The problem arise when change the image second time .
Change copper src image old image ,but old image append under the new image.
This problem will not always arise,It just happens sometimes.
The text was updated successfully, but these errors were encountered: