This is a Flask-based web application that allows users to upload or paste an image, remove its background, and download the result in various formats. It supports multiple image formats, including HEIC.
- Upload images (including HEIC format)
- Paste images directly from clipboard
- Preview uploaded/pasted images before processing
- Remove background from images
- Download processed images in PNG, JPEG, or WebP formats
- Responsive and user-friendly interface
Here are some screenshots of the Background Remover Web App in action:
- Python 3.7 or higher
- pip (Python package installer)
-
Clone this repository:
git clone https://github.com/yourusername/background-remover-app.git cd background-remover-app
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS and Linux:
source venv/bin/activate
- On Windows:
-
Install the required packages:
pip install -r requirements.txt
-
Run the Flask application:
python app.py
-
Open a web browser and navigate to
http://localhost:5000
-
Upload an image using the "Choose an image" button or paste an image directly from your clipboard
-
Preview the uploaded/pasted image
-
Click "Remove Background" to process the image
-
Once processed, you can download the result in PNG, JPEG, or WebP format
To run the application using Docker Compose, follow these steps:
-
Make sure you have Docker and Docker Compose installed on your system.
-
Build and start the Docker container:
docker compose up --build
-
Open your browser and navigate to
http://localhost:8088
to access the application. -
To stop the container, press
Ctrl+C
in the terminal where Docker Compose is running, or run:docker compose down
app.py
: Main Flask applicationtemplates/index.html
: HTML template for the web interfacestatic/styles.css
: CSS styles for the web interfacerequirements.txt
: List of Python dependenciesuploads/
: Temporary folder for uploaded images (created automatically)
- Flask: Web framework
- Pillow: Image processing
- transparent-background: Background removal
- pillow-heif: HEIC image support
- Font Awesome: Icons
This project is open source and available under the MIT License.
Contributions, issues, and feature requests are welcome. Feel free to check issues page if you want to contribute.
- transparent-background for the background removal functionality
- pillow-heif for HEIC image support