You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to crop image in my image crop control.
I am using canvas getImageData function to get partial image data,
It is throwing "Uncaught SecurityError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data."
If I change create Image element code in fayde.js then it works fine.
BitmapSource.prototype.createElement = function () {
var image = new Image();
image.setAttribute('crossOrigin', 'anonymous');
return image;
};
Can you provide some solution on this in next fayde release?
The text was updated successfully, but these errors were encountered:
I am trying to crop image in my image crop control.
I am using canvas getImageData function to get partial image data,
It is throwing "Uncaught SecurityError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data."
If I change create Image element code in fayde.js then it works fine.
Can you provide some solution on this in next fayde release?
The text was updated successfully, but these errors were encountered: