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

Web worker compatibility #37

Closed
IrregularShed opened this issue Mar 14, 2022 · 1 comment
Closed

Web worker compatibility #37

IrregularShed opened this issue Mar 14, 2022 · 1 comment

Comments

@IrregularShed
Copy link

I would like to be able to process large batches of images - maybe as many as 100 - using a web worker script, so that I don't tie up the UI thread. When I tried, I discovered that this library uses some DOM features (creating an <img>) and APIs (eg window.URL) that there's no way of using with a worker.

I wanted to use this library rather than pica so that the metadata would be retained, as it's extremely useful for the use case (a PWA for engineers doing kitchen appliance fittings - they have to take photos during their work). Before I try and implement something myself, do you know of any way to achieve what I'm trying to do without rewriting most of it?

@puzrin
Copy link
Member

puzrin commented Mar 14, 2022

This is wrapper around pica. It will use WW automatically when available (inside of pica)

@puzrin puzrin closed this as completed Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants