Jump to content

mikolaskova

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by mikolaskova

  1. Hello, 

    I want to work with the image data of a jpeg-image like in this example:

    https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_canvas_getimagedata2

    On a webserver it works fine, but if I test locally I get an error

    Quote

    index.html:16 Uncaught DOMException: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data.

    Isn't it possible to work locally? How do I have to change the script in order to run it locally?

    I will work with my (young) students with javascript and would like to work locally.

    Best Regards

×
×
  • Create New...