Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/naptha/tesseract.js.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBalearica <you@example.com>2022-08-11 08:09:55 +0300
committerBalearica <you@example.com>2022-08-11 08:09:55 +0300
commit1136e0a9411b28a5ca3c386e21d6c0e651e0071d (patch)
tree19579cd8161f4972790b408812cafb3b53897e9e
parent2e478bd8a5789d23b2aff4dd477126b0135f40f8 (diff)
Revert "Ran linter"
This reverts commit 2e478bd8a5789d23b2aff4dd477126b0135f40f8.
-rw-r--r--src/worker-script/utils/setImage.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/worker-script/utils/setImage.js b/src/worker-script/utils/setImage.js
index 2802b98..c8fabcd 100644
--- a/src/worker-script/utils/setImage.js
+++ b/src/worker-script/utils/setImage.js
@@ -17,6 +17,7 @@ module.exports = (TessModule, api, image) => {
let w = 0;
let h = 0;
+
if (image instanceof ImageData) {
// The pixel format of ImageData is RGBA and technically
// Tesseract is expecting ABGR, but it does not seem to matter