-
Notifications
You must be signed in to change notification settings - Fork 93
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
From browser Worker #30
Comments
Oh I got passed the infinite loop by doing: var a = new PNG(new Uint8Array(xhr.response)); I need to now get the rgba pixel data. Working on that now. |
Hm ok so I was doing this now:
So |
Oh got it had to do this:
May I submit a PR, i had to add an if statement, if its a worker, not to load that |
FWIW https://github.com/guest271314/decodePixelsFromOffscreenCanvas |
I am trying to use this from a Web Worker in a browser.
I get the image data by doing xhr with responseType arraybuffer. I then do var p = new PNG(arrbuf);
However this gets stuck into an infinite loop. I see this is because:
Can you please help me modify to use in Web Worker scope.
Thanks!
The text was updated successfully, but these errors were encountered: