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

Is it possible to capture some canvas and img element? #28

Open
evanezent opened this issue Mar 28, 2022 · 2 comments
Open

Is it possible to capture some canvas and img element? #28

evanezent opened this issue Mar 28, 2022 · 2 comments

Comments

@evanezent
Copy link

Hello,
So I want to capture the result from canvas three js manipulation, but it returns a blank image, but when I try to put ref into the root of all elements, all elements are able to capture except the img element and the canvas itself. Does anyone know how to deal with it? Thanks

RESULT
img (10)

EXPECTATION
Screen Shot 2022-03-28 at 15 48 42

@leonzdev
Copy link

html2canvas needs to be called with allowTaint: true and useCORS: true to capture img. Source: https://stackoverflow.com/a/66966944

@tawago
Copy link
Contributor

tawago commented Jul 20, 2022

#36

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