Skip to content
프로젝트

소개

무료 이미지 배경 제거 도구입니다. 개인정보를 보호하며 클라이언트에서 Transformers.js로 처리합니다.

디자인 및 미디어

이 수치를 측정하는 방법

What you can do

  • 🎯 One-click background removal for images
  • 🎨 Custom background color and image selection
  • 💾 Download options for both transparent and colored backgrounds
  • 🏃‍♂️ Local processing - no server uploads needed

측정된 스타 증가

in 24h
0
in 7 days
+2
in 15 days
+2
in 1 month
+9

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Image Background Remover in the browser

A powerful React + Vite application that removes backgrounds from images directly in your browser. This app leverages machine learning models through Transformers.js to process media locally, ensuring your files never leave your device.

Features

  • 🎯 One-click background removal for images
  • 🎨 Custom background color and image selection
  • 💾 Download options for both transparent and colored backgrounds
  • 🏃‍♂️ Local processing - no server uploads needed
  • 🔒 Privacy-focused - all processing happens in your browser
  • ⚡ Optional WebGPU acceleration for supported browsers

Technical Implementation

The app implements a cross-browser approach to background removal with optional WebGPU acceleration:

Default Implementation (All Browsers)

  • Uses RMBG-1.4, a robust background removal model
  • Ensures consistent performance across all modern browsers
  • Processes images efficiently using WebAssembly

Optional WebGPU Acceleration

  • For browsers with WebGPU support, offers MODNet as an alternative
  • Can be enabled through a dropdown when WebGPU is available
  • Leverages GPU acceleration for potentially faster processing

Both implementations use Transformers.js to run the machine learning models directly in the browser, eliminating the need for server-side processing.

How It Works

  1. File Selection: Upload any image file
  2. Model Selection:
    • By default, uses RMBG-1.4 for maximum compatibility
    • If WebGPU is available, offers option to switch to MODNet
  3. Background Removal: The selected ML model processes your media, creating an alpha mask
  4. Customization: Choose a custom background color, image or keep transparency
  5. Export: Download your processed media with either transparent or colored background

Getting Started

  1. Clone the repository:
git clone https://github.com/addyosmani/bg-remove.git
  1. Install dependencies:
npm install
  1. Start the development server:
npm run dev

Browser Support

  • Default Experience: All modern browsers (Chrome, Firefox, Safari, Edge)
  • Optional WebGPU: Available in browsers with WebGPU support (Chrome Canary with WebGPU flags enabled)

Technical Stack

  • React + Vite for the frontend framework
  • Transformers.js for ML model inference
  • RMBG-1.4 as the default cross-browser model
  • Optional WebGPU acceleration with MODNet
  • IndexedDB (via Dexie.js) for local file management
  • TailwindCSS for styling

Credits

Based on the WebGPU background removal demo by @xenova

License

MIT License - feel free to use this in your own projects!

관련 프로젝트 살펴보기

불러오는 중…