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

Optional image crossOrigin="anonymous"; #54

Closed
svarunan opened this issue Jul 11, 2018 · 7 comments · Fixed by #82
Closed

Optional image crossOrigin="anonymous"; #54

svarunan opened this issue Jul 11, 2018 · 7 comments · Fixed by #82

Comments

@svarunan
Copy link

Please give an option to set crossOrigin attribute for the source images.

This is solve the problem while converting canvas to b64
"Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported."

@narayanachitrakars
Copy link

Actually you need to run pages with web server. Then you don't get this error.

@xcompile
Copy link

xcompile commented Sep 24, 2018

using it with polymer 3, run into the same problem even when deploying the application with a standard HTTP server.
My scenario involves serving pictures from a different server than the application.

I would expect the problem arises due to https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image

@isaac-martin
Copy link

Also running into this issue. Images being served of CDN. any update?

@dongseup
Copy link

dongseup commented Apr 8, 2019

Importing images to CDn
Unable to retrieve image.
CrossOrgin = 'Anonymous'
Please insert it.

@donmb1
Copy link

donmb1 commented Feb 18, 2020

+1
Anyone came up with a solution?

@trevorblades
Copy link
Contributor

@dongseup @donmb1 @svarunan I made a PR (#82) that solves this issue by adding a crossOrigin option that can be set to Anonymous to facilitate cross-origin image merging! 🎉

@lukechilds
Copy link
Owner

#82 is now merged and published as merge-images@1.2.0.

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

Successfully merging a pull request may close this issue.

8 participants