-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true #2986
Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true #2986
Comments
Try this:
|
@leonardlepadatu, thanks for the advice but it didn't work. :( html2canvas/src/dom/document-cloner.ts Line 226 in 181d1b1
|
|
It works, please read his reply carefully. |
Check if you have updated {willReadFrequently: true} in module folder you are using like cjs, es2015,esm |
Bug reports:
I repeatedly call
and I see warnings in the browser console: "Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true. See: https://html.spec.whatwg.org/multipage/canvas.html#concept-canvas-will-read-frequently"
the warning refers to the line
html2canvas/src/dom/document-cloner.ts
Line 226 in 181d1b1
how to solve the problem with warnings?
Thank you in advance :)
Specifications:
The text was updated successfully, but these errors were encountered: