JsImageCrop icon indicating copy to clipboard operation
JsImageCrop copied to clipboard

Dont work with absolute routes

Open playUruguay opened this issue 9 years ago • 2 comments

Hi, I'm working with images that already exist in different subdomains, so I need to work with absolute paths to the image. When dealing with absolute paths I get this error. Error: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported. Hope you can help me. Thank you

playUruguay avatar Dec 30 '15 00:12 playUruguay

I think that is because canvas elements do not act like iframes. I think you will need the source image in your project or change some security settings to make this work. I remember getting this error when the images were not on my machine.

joncodo avatar Dec 30 '15 00:12 joncodo

Ok, In the version of alexk111, i don't have this problem and the absolute routes works well. you know how he made it to solve this problem?

playUruguay avatar Dec 30 '15 15:12 playUruguay