What browser, and do you have the code somewhere ? That makes assisting a
lot easier.

Taking a wild guess based on your comments so far, if you are importing an
<img> into a canvas, you might require the 'crossorigin' attribute to be
set on that element.
https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image

DJ

On Wed, Jan 7, 2015 at 10:21 AM, Alex Brollo <[email protected]> wrote:

> While dragging a little bit into canvas, I successfully upload into a
> canvas a cropped clip of the image of a djvu page into it.source, just to
> crash into a DOM exception "The canvas has been tainted by cross-origin
> data" while attempting do access to pixel data with both getImageData()
> and toDataURL() methods.
>
> Again, it seems a CORS issue.
>
> Am I wrong? Is there some doc about this issue?
>
> Alex brollo
> _______________________________________________
> Wikitech-l mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to