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

Image doesn't show #6

Open
meizano opened this issue Jul 24, 2019 · 3 comments
Open

Image doesn't show #6

meizano opened this issue Jul 24, 2019 · 3 comments

Comments

@meizano
Copy link

meizano commented Jul 24, 2019

I have try the example. The image doesn't show up. But, if I try to inspect the document, it is downloaded and accessible. If there's any special requirement for using image in html? Beside what stated in the github repo.

@supereggbert
Copy link
Owner

This sound like an origin issue, images have to be on the same origin or have the appropriate CORS headers.

@LukeTOBrien
Copy link

I get this issue too, I think this is a limitation as we are not rendering as the browser would.
Why does this happen? How are you loading images?

I would of thought using the Image class shouldn't be an issue for CORS .

@supereggbert
Copy link
Owner

Unfortunately, CORS does effect images. To render HTML to a canvas all external assets have to be embedded as data urls which the library generates from XHR requests.

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

No branches or pull requests

3 participants