Skip to content

Sarthakischill/RemBG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REMBG - Background Remover

License Python Flask

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.

✨ Preview

✨ Features

  • 🖼️ 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

🛠️ Technology Stack

  • 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

🚀 Getting Started

Prerequisites

  • Python 3.7 or higher
  • pip package manager
  • Git

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/rembg.git
cd rembg
  1. Create a virtual environment:
python -m venv venv
source venv/bin/activate  # On Windows, use: venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Initialize the database:
flask db init
flask db migrate
flask db upgrade
  1. Run the application:
python app.py

The application will be available at http://localhost:5000

📱 Usage

  1. Create an account or login if you already have one
  2. Click the upload area or drag and drop an image
  3. Wait for automatic background removal
  4. Download your processed image
  5. Access your processing history anytime

🔧 Configuration

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)

📁 Project Structure

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

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📝 License

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

🙏 Acknowledgments

  • rembg for the background removal functionality
  • Tailwind CSS for the UI framework
  • Flask for the web framework

📧 Contact

Sarthak - @Sarthakhuh

Project Link: https://github.com/yourusername/rembg


If you find this project helpful, please consider giving it a star ⭐️

About

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors