Skip to content

Simple tool uses for removing background of images. It supports both manual/AI modes.

Notifications You must be signed in to change notification settings

vuon9/image-background-remover

Repository files navigation

Image Background Remover 🎨✨

Effortless Precision. Instantly Transparent.

A professional-grade web application designed to isolate subjects from their backgrounds with pixel-perfect accuracy. Whether you need speed or semantic understanding, this tool offers the best of both worlds by combining classic computer vision algorithms with state-of-the-art Generative AI.

🚀 Key Features

  • Dual Intelligence Core:
    • Fast Mode: Instant algorithmic background removal using advanced flood-fill and edge detection.
    • 🧠 AI Model: Powered by Google Gemini 2.5, capable of understanding complex scenes and separating subjects with semantic awareness.
  • Precision Studio:
    • Manual Touch-up: Refine masks with adjustable "Add" and "Subtract" brushes.
    • Smart Smoothing: Adjustable edge blurring to eliminate jagged artifacts.
    • Non-Destructive: Full Undo/Redo history for peace of mind.
  • Pro Workflow:
    • Layer-based editing (Original vs. Mask vs. Output).
    • Real-time preview modes.
    • Smart file naming based on timestamps.
  • Modern UI/UX: Dark-themed, glassmorphic interface built for focus and aesthetics.

🛠️ Tech Stack

  • Frontend: React 19, TypeScript
  • Styling: Tailwind CSS
  • AI Engine: Google Gemini API (gemini-2.5-flash-image)
  • Icons: Lucide React

📦 Getting Started

  1. Clone the repository.
  2. Install dependencies: npm install
  3. Set your API Key: export API_KEY="your_gemini_api_key"
  4. Run the dev server: npm start

🤖 AI-Generated Source

This entire project—from the flood-fill algorithms to the React component architecture—was architected and generated by AI. It serves as a demonstration of modern AI-assisted software engineering.

📄 License

This project is open source and available under the MIT License.


Built with ❤️ and 🤖.

About

Simple tool uses for removing background of images. It supports both manual/AI modes.

Topics

Resources

Stars

Watchers

Forks