Open mastrix opened 1 year ago
Came here looking for this! Happy to submit the pull request if you're onboard with it @DanielHauschildt .
Stumbled upon the same problem.
I tried a lot of things (especially using the above mentioned patch, which makes total sence, and building/installing the package myself), but nothing worked.
I'm also simply trying to run removeBackground()
inside a node worker. Any success on your guy's end?
PS: While writing this I noticed I completely disregarded the problem being with the runtime itself. I'm running bun workers and not nodejs itself. Will have to investigate more, but will appreciate any feedback on the issue nonetheless.
Hi guys, First of all, it's a really nice lib that works like a charm :)
I have a suggestion to add/modify a few lines in utils.ts, that will allow to use this lib in worker.
https://github.com/imgly/background-removal-js/blob/main/src/utils.ts#L95-L101 Original
Option 1
Option 2