You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uncaught (in promise) Error: ReferenceError: Image is not defined
Error is caused by image load module, get-pixels. This packages is supposed to work in both Node and browser. The Image class is only accessible with DOM so get-pixel probably uses the browser script while being executed in worker.
Solution: find way to force get-pixels to use it's Node logic to load images. (Not sure if Node scripts like fs will work inside worker.)
The text was updated successfully, but these errors were encountered:
Loading an image while in a worker fails.
Uncaught (in promise) Error: ReferenceError: Image is not defined
Error is caused by image load module, get-pixels. This packages is supposed to work in both
Node
andbrowser
. TheImage
class is only accessible with DOM so get-pixel probably uses thebrowser
script while being executed in worker.Solution: find way to force get-pixels to use it's
Node
logic to load images. (Not sure if Node scripts likefs
will work inside worker.)The text was updated successfully, but these errors were encountered: