Background-removal-js
lastmod 2023-06-30created 2023-06-301 edits
Remove backgrounds from images directly in the browser environment with ease and no additional costs or privacy concerns. Explore an interactive demo.
Open-source background removal in the browser
Features
- npm package that removes image backgrounds directly in the browser
- Requires no additional server cost and runs entirely in the browser, ensuring data privacy
- Fully integrated with IMG.LY's CE.SDK, providing in-browser image matting and background removal
- Package easily installed via npm or yarn
- The first run may take time to fetch the wasm and onnx model files, but subsequent runs are faster
- Optional configuration available for finer control over library behavior
- The onnx model is provided in medium size (~80MB) by default and is available in various sizes
- Performance depends on the available feature set and is affected by whether SharedArrayBuffer is available
- Custom asset serving possible by self-hosting the wasm and onnx files
- Debug output and logging can be enabled for troubleshooting
- CORS issues can be resolved by passing additional parameters to the fetch function
- Ideal for developers of e-commerce applications, image editing applications, and web-based graphic design tools
- Free to use under the GPL license
- Developed by IMG.LY, which provides SDKs for creative applications