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

Revert "DanielHauschildt/nodejs (#26)" #35

Merged
merged 1 commit into from
Sep 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 1 addition & 18 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,18 +1 @@
bundle/**/* filter=lfs diff=lfs merge=binary
**/*.onnx filter=lfs diff=lfs merge=binary
**/*.ort filter=lfs diff=lfs merge=binary
**/*.{jpeg,jpg} filter=lfs diff=lfs merge=binary
**/*.png filter=lfs diff=lfs merge=binary
**/*.webp filter=lfs diff=lfs merge=binary
**/*.avif filter=lfs diff=lfs merge=binary
**/*.heic filter=lfs diff=lfs merge=binary
**/*.heif filter=lfs diff=lfs merge=binary
**/*.pdf filter=lfs diff=lfs merge=binary
**/*.psd filter=lfs diff=lfs merge=binary
**/*.mp4 filter=lfs diff=lfs merge=binary
**/*.mov filter=lfs diff=lfs merge=binary
**/*.m4v filter=lfs diff=lfs merge=binary
**/*.mp3 filter=lfs diff=lfs merge=binary
**/*.wav filter=lfs diff=lfs merge=binary
**/*.aif filter=lfs diff=lfs merge=binary
**/*.aiff filter=lfs diff=lfs merge=binary
bundle/models/* filter=lfs diff=lfs merge=lfs -binary
File renamed without changes.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ node_modules
dist
tmp
.DS_Store
.vscode
.parcel-cache
.vscode
11 changes: 4 additions & 7 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
**/node_modules
**/dist
**/tmp
build
**/package-lock.json
.vscode/
**/public/
node_modules
dist
tmp
build
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
# Background Removal in the Browser

<p align="center">
<img src="https://img.ly/showcases/cesdk/web/s/case-thumbnail/background-removal/background-removal-0.png?utm_source=github&utm_medium=project&utm_campaign=bg-removal" alt="background removal js showcase" />
<img src="https://img.ly/static/background-removal-js-logo.png?utm_source=github&utm_medium=project&utm_campaign=bg-removal" width="100" height="100" alt="" />
</p>

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?utm_source=github&utm_medium=project&utm_campaign=bg-removal).

## News
- **`September 12th, 2023`:** We released the code of Background Removal for NodeJs (see `packages/node`).
- **`June 28th, 2023`:** We released the code of Background Removal for Web (see `packages/web`).

- **`June 28th, 2023`:** We released the code of Background Removal JS.

## Overview
Expand All @@ -26,6 +25,10 @@ The key features of `@imgly/background-removal` are:

The Neural Network ([ONNX model](https://onnx.ai/)) and WASM files used by `@imgly/background-removal` are hosted on [UNPKG](https://www.unpkg.com/), making it readily available for download to all users of the library. See the section Custom Asset Serving if you want to host data on your own servers.

<p align="center">
<img src="https://img.ly/showcases/cesdk/web/s/case-thumbnail/background-removal/background-removal-0.png?utm_source=github&utm_medium=project&utm_campaign=bg-removal" alt="background removal js showcase" />

</p>

## Installation

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "test",
"version": "1.1.0",
"version": "0.1.0",
"private": true,
"dependencies": {
"@imgly/background-removal": "file:../../web",
"@imgly/background-removal": "file:../../",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ function App() {
resetTimer();
setImageUrl(randomImage);

const imageBlob = await removeBackground(2, {
publicPath: `${window.location.href}/static/js/`,
const imageBlob = await removeBackground(randomImage, {
publicPath: '/static/js/',
// debug: true,
progress: (key, current, total) => {
const [type, subtype] = key.split(':');
Expand Down
3 changes: 3 additions & 0 deletions examples/vite-project/.vite/deps_temp_330b8fd7/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"type": "module"
}
Loading