-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
issue with setSrc for crossorigin images #6397
Comments
Don't forget to set |
There is some code in fabricJS that chrome 83 made broken. It is effectively a bug, i m just not sure how should be fixed. optionA: option B: I really do not know what makes more sense. |
Just my 2 cents... it seems to me that optionA is the most consistent. It makes sense that crossOrigin would be specified every time a new image is loaded, whether you're creating a new image object or changing the source of an existing image object. After all, the new url when calling |
Yes. Also to me asking to specify crossOrigin every load just bring attention to the fact that today you have to deal with it. |
Hello,
i have some trouble with changing the src of an image.
As you can see in the fiddle, i want to change the src of an image via the
setSrc
function.After calling
canvas.renderAll
in thesetSrc
-callback nothing happens.The image will be loaded twice (you can see it in the network panel of the chrome devtools). So the callback will be triggered after the first load, but the image will be rendered correctly after the image is loaded the second time. Also all image options like width and height will be reseted.
This problem occurs only if i set the crossOrigin option (to anonymous).
http://jsfiddle.net/v6e0hd5o/1/
Tested with fabricjs v. 4.0.0-beta.12 on chrome 83.
The text was updated successfully, but these errors were encountered: