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?
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?