kennethcachia / background-check

Automatically switch to a darker or a lighter version of an element depending on the brightness of images behind it.
http://kennethcachia.com/background-check/
MIT License
3.27k stars 282 forks source link

Any idea why I'm getting this error? #10

Closed nicovanzyl closed 10 years ago

nicovanzyl commented 10 years ago

Uncaught SecurityError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': the canvas has been tainted by cross-origin data.

kennethcachia commented 10 years ago

Check this out, and this demo.

Hope you find these helpful!

Sidong commented 10 years ago

You should try run it on a web server or on a local server! Not just open the file directly.