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

How to use background-removal in Electron? #96

Open
maxoyed opened this issue Jan 20, 2024 · 6 comments
Open

How to use background-removal in Electron? #96

maxoyed opened this issue Jan 20, 2024 · 6 comments

Comments

@maxoyed
Copy link

maxoyed commented Jan 20, 2024

Does any one already implement this case? I'd appreciate that if someone would like to share about that!

@uptotec
Copy link

uptotec commented Mar 2, 2024

Does any one already implement this case? I'd appreciate that if someone would like to share about that!

@maxoyed were you able to get the library working in electron ? I get sharp error

Something went wrong installing the "sharp" module

A dynamic link library (DLL) initialization routine failed.
node_modules\sharp\build\Release\sharp-win32-x64.node

@maxoyed
Copy link
Author

maxoyed commented Mar 2, 2024

Does any one already implement this case? I'd appreciate that if someone would like to share about that!

@maxoyed were you able to get the library working in electron ? I get sharp error

Something went wrong installing the "sharp" module

A dynamic link library (DLL) initialization routine failed.
node_modules\sharp\build\Release\sharp-win32-x64.node

When did you encounter this error? install or import sharp?

@uptotec
Copy link

uptotec commented Mar 2, 2024

Does any one already implement this case? I'd appreciate that if someone would like to share about that!

@maxoyed were you able to get the library working in electron ? I get sharp error

Something went wrong installing the "sharp" module

A dynamic link library (DLL) initialization routine failed.
node_modules\sharp\build\Release\sharp-win32-x64.node

When did you encounter this error? install or import sharp?

when I import the library

@maxoyed
Copy link
Author

maxoyed commented Mar 3, 2024

Does any one already implement this case? I'd appreciate that if someone would like to share about that!

@maxoyed were you able to get the library working in electron ? I get sharp error

Something went wrong installing the "sharp" module

A dynamic link library (DLL) initialization routine failed.
node_modules\sharp\build\Release\sharp-win32-x64.node

When did you encounter this error? install or import sharp?

when I import the library

try require it where you use sharp, do not import it at the beginning of the file

@uptotec
Copy link

uptotec commented Mar 3, 2024

Does any one already implement this case? I'd appreciate that if someone would like to share about that!

@maxoyed were you able to get the library working in electron ? I get sharp error

Something went wrong installing the "sharp" module

A dynamic link library (DLL) initialization routine failed.
node_modules\sharp\build\Release\sharp-win32-x64.node

When did you encounter this error? install or import sharp?

when I import the library

try require it where you use sharp, do not import it at the beginning of the file

tried it same issue. I forked the library and I'm currently replacing the sharp with jimp. if its in the interest of this library let me know and I will make a pr with the change

@uptotec
Copy link

uptotec commented Mar 4, 2024

@DanielHauschildt I replaced sharp with jimp in the node library to get it working in electron. its fully working with the same performance. please let me know if you want a pr with the changes.

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