Dev Center
Table of contents

Thanks for Downloading Dynamic Web TWAIN 30-Day Trial!

Your download will start shortly. If your download does not begin, click here to retry.

Error Troubleshooting

Warning message - Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true.

Symptom

When you are using Chrome 107(developer version) & 106 (official version) or any version above these, you could encounter a warning in 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

Cause

Based on Google developer guide, the setting for attribute willReadFrequently in getContext("2d") has to be true if you are using Chrome 107(developer version) & 106 (official version) or higher, otherwise it will show this warning message.

Solution

Step 1. Navigate to ‘../Resources/dynamsoft.webtwain.initiate.js’ replace all getContext("2d") to getContext("2d",{willReadFrequently:true})

Step 2. Navigate to ‘../Resources/src/dynamsoft.viewer.js’ replace all getContext("2d") to getContext("2d",{willReadFrequently:true})

Planning

It will be fixed in version 18.0 officially.

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest Version (18.4)
    • Version 18.3
    • Version 18.1
    • Version 18.0
    • Version 17.3
    • Version 17.2.1
    • Version 17.1.1
    • Version 17.0
    • Version 16.2
    • Version 16.1.1
    Change +