vre2h/use-react-screenshot

Is it possible to capture some canvas and img element?

Opened this issue · 2 comments

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

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