Skip to content
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

Tainted canvas error with OCR #1901

Closed
nolanlawson opened this issue Nov 24, 2020 · 0 comments · Fixed by #1902
Closed

Tainted canvas error with OCR #1901

nolanlawson opened this issue Nov 24, 2020 · 0 comments · Fixed by #1902
Labels
bug Something isn't working

Comments

@nolanlawson
Copy link
Owner

Follow-up to #1877

  1. Upload an image
  2. Refresh the page
  3. Try to run OCR on it

Get error:

loadImage.js:28 Uncaught DOMException: Failed to execute 'toBlob' on 'HTMLCanvasElement': Tainted canvases may not be exported.
    at http://localhost:4002/client/aa55e996d41000be2f5d/vendors~tesseractWorker.js:4155:20
    at Function.<anonymous> (http://localhost:4002/client/aa55e996d41000be2f5d/vendors~tesseractWorker.js:2264:5)
    at Function.<anonymous> (http://localhost:4002/client/aa55e996d41000be2f5d/vendors~tesseractWorker.js:1861:23)
    at Function.transform (http://localhost:4002/client/aa55e996d41000be2f5d/vendors~tesseractWorker.js:1601:25)
    at Function.onload (http://localhost:4002/client/aa55e996d41000be2f5d/vendors~tesseractWorker.js:2277:17)
    at HTMLImageElement.<anonymous> (http://localhost:4002/client/aa55e996d41000be2f5d/vendors~tesseractWorker.js:2196:24)
@nolanlawson nolanlawson added the bug Something isn't working label Nov 24, 2020
nolanlawson added a commit that referenced this issue Nov 24, 2020
nolanlawson added a commit that referenced this issue Nov 24, 2020
* fix: fix tainted canvas error with OCR

fixes #1901

* fix: minor tweaks
alice-werefox pushed a commit to alice-werefox/sema-werefox-cafe that referenced this issue Apr 3, 2023
* fix: fix tainted canvas error with OCR

fixes nolanlawson#1901

* fix: minor tweaks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant