REMBG is a modern web application that allows users to easily remove backgrounds from images. Built with Flask and featuring a sleek, responsive UI, it provides a seamless experience for processing images with instant results.
- 🖼️ One-click background removal
- 👤 User authentication and personal workspaces
- 📱 Responsive design that works on desktop and mobile
- 🎨 Modern UI with smooth animations
- 📂 Image processing history
- ⚡ Real-time processing feedback
- 🔒 Secure file handling
- 💾 Automatic cleanup of user data on logout
- Backend: Python/Flask
- Database: SQLite with SQLAlchemy
- Frontend: HTML, CSS (Tailwind CSS), JavaScript
- Image Processing: rembg
- Authentication: Flask-Login
- UI Components: Font Awesome, Google Fonts
- Python 3.7 or higher
- pip package manager
- Git
- Clone the repository:
git clone https://github.com/yourusername/rembg.git
cd rembg- Create a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows, use: venv\Scripts\activate- Install dependencies:
pip install -r requirements.txt- Initialize the database:
flask db init
flask db migrate
flask db upgrade- Run the application:
python app.pyThe application will be available at http://localhost:5000
- Create an account or login if you already have one
- Click the upload area or drag and drop an image
- Wait for automatic background removal
- Download your processed image
- Access your processing history anytime
The application can be configured through environment variables:
SECRET_KEY: Flask secret key (default: provided in code)MAX_CONTENT_LENGTH: Maximum file size (default: 16MB)PORT: Server port (default: 5000)
REMBG/
├── app.py # Main application file
├── requirements.txt # Python dependencies
├── instance/ # Database files
├── uploads/ # Temporary upload directory
├── processed/ # Processed images directory
└── templates/ # HTML templates
├── index.html # Main application page
├── login.html # Login page
└── signup.html # Registration page
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- rembg for the background removal functionality
- Tailwind CSS for the UI framework
- Flask for the web framework
Sarthak - @Sarthakhuh
Project Link: https://github.com/yourusername/rembg
If you find this project helpful, please consider giving it a star ⭐️

