diff options
author | Balearica <you@example.com> | 2022-08-11 08:09:55 +0300 |
---|---|---|
committer | Balearica <you@example.com> | 2022-08-11 08:09:55 +0300 |
commit | 1136e0a9411b28a5ca3c386e21d6c0e651e0071d (patch) | |
tree | 19579cd8161f4972790b408812cafb3b53897e9e | |
parent | 2e478bd8a5789d23b2aff4dd477126b0135f40f8 (diff) |
Revert "Ran linter"
This reverts commit 2e478bd8a5789d23b2aff4dd477126b0135f40f8.
-rw-r--r-- | src/worker-script/utils/setImage.js | 1 |
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 |