Skip to content

An elegant, simple, and powerful web application that allows you to remove the background from any image. Powered by Flask and Rembg, this app processes images directly in the browser, ensuring that you can get your results instantly without the hassle of manual editing.

Notifications You must be signed in to change notification settings

arslanr369/FlaskBGRemover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask Background Remover 🖼️✨

Flask
Python
Rembg

An elegant, simple, and powerful web application that allows you to remove the background from any image. Powered by Flask and Rembg, this app processes images directly in the browser, ensuring that you can get your results instantly without the hassle of manual editing.


Features 🚀

  • Instant Background Removal: Upload an image, and the app will automatically remove its background.
  • Lightweight and Fast: Built using Flask, ensuring minimal overhead and snappy performance.
  • No File Storage: Processed images are automatically downloaded to your device without being stored on the server.
  • Modern Design: Beautiful and responsive UI with gradient styling for a smooth user experience.
  • Open Source: Fully customizable and extendable.

Installation & Setup 🛠️

Prerequisites:

  • Python 3.9+
  • pip (Python package manager)

Step 1: Clone the Repository

git clone https://github.com/arslanr369/React-Python-BG-Remover.git  
cd Flask-BG-Remover  

Step 2: Create a Virtual Environment (Recommended)

python -m venv venv  
source venv/bin/activate  # On Windows: venv\Scripts\activate  

Step 3: Install Dependencies

pip install -r requirements.txt  

Step 4: Run the Application

python app.py  

Navigate to http://127.0.0.1:5000 in your web browser to use the app.


Usage 📸

  1. Upload an Image: Click the upload button and select your image.
  2. Remove Background: Hit the "Remove Background" button.
  3. Download Processed Image: The app will automatically download the image with the background removed.

Folder Structure 📂

Flask-BG-Remover/  
│  
├── app.py                  # Main application file  
├── templates/              # HTML templates  
│   └── index.html          # Main UI file  
├── static/  
│   └── styles.css          # Custom CSS styles  
├── venv/                   # Virtual environment (optional)  
├── requirements.txt        # Python dependencies  
└── README.md               # Project documentation  

Technologies Used 🛠️

  • Flask: A lightweight WSGI web application framework in Python.
  • Rembg: An AI-powered library for removing image backgrounds.
  • HTML & CSS: For building the responsive and modern user interface.
  • Pillow: Python Imaging Library for image manipulation.

Contributing 🤝

Contributions, issues, and feature requests are welcome! Feel free to fork the repository and submit a pull request.


License 📜

This project is licensed under the MIT License. See the LICENSE file for details.


Acknowledgments 🙌

Special thanks to the contributors of Flask and Rembg for their amazing tools that made this project possible.


Made with 💖 by Arslan Riaz

About

An elegant, simple, and powerful web application that allows you to remove the background from any image. Powered by Flask and Rembg, this app processes images directly in the browser, ensuring that you can get your results instantly without the hassle of manual editing.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published