imgly / background-removal-js

Remove backgrounds from images directly in the browser environment with ease and no additional costs or privacy concerns. Explore an interactive demo.
https://img.ly/showcases/cesdk/web/background-removal/web
GNU Affero General Public License v3.0
5.89k stars 362 forks source link

How to use background-removal in Electron? #96

Open maxoyed opened 10 months ago

maxoyed commented 10 months ago

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

uptotec commented 8 months ago

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 commented 8 months ago

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 commented 8 months ago

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 commented 8 months ago

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 commented 8 months ago

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 commented 8 months ago

@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.