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 crop function crossOrigin issue #210

Open
deepaksm1 opened this issue Dec 21, 2015 · 0 comments
Open

Image crop function crossOrigin issue #210

deepaksm1 opened this issue Dec 21, 2015 · 0 comments

Comments

@deepaksm1
Copy link

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?

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

No branches or pull requests

2 participants