Large images cause a delay
If I use a photo (~5 M) it takes a long time (~15 sec) before the text recognition starts. The browser console shows me [Violation] 'load' handler took. Same issue with https://github.com/naptha/tesseract.js/blob/master/examples/browser/basic.html.
Is this a normal behavior or should I resize the image? Smaller pictures (~1 M) are no problem.
This may be related to this line, which is causing a hang depending on how many bytes it needs to process. I've made a patch in #610 whilst adding support for ImageData.
Closing as this should be resolved with the release of version 3.0.0. Feel free to open another issue if that is not the case.