{"id":22961949,"url":"https://github.com/aboldev/image-background-remover-webapp","last_synced_at":"2025-07-17T19:33:25.018Z","repository":{"id":244613773,"uuid":"815757763","full_name":"AbolDev/image-background-remover-webapp","owner":"AbolDev","description":"A web app to upload images and remove their backgrounds using the RMBG-1.4 model.","archived":false,"fork":false,"pushed_at":"2024-10-30T17:53:40.000Z","size":6159,"stargazers_count":24,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-12T16:06:50.504Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AbolDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-06-16T04:05:28.000Z","updated_at":"2025-04-29T19:53:06.000Z","dependencies_parsed_at":"2024-10-27T19:08:55.183Z","dependency_job_id":"47626c99-5183-4c64-93fa-bbc408ed4715","html_url":"https://github.com/AbolDev/image-background-remover-webapp","commit_stats":null,"previous_names":["aboldev/image-background-remover-webapp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AbolDev/image-background-remover-webapp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbolDev%2Fimage-background-remover-webapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbolDev%2Fimage-background-remover-webapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbolDev%2Fimage-background-remover-webapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbolDev%2Fimage-background-remover-webapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AbolDev","download_url":"https://codeload.github.com/AbolDev/image-background-remover-webapp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbolDev%2Fimage-background-remover-webapp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265651957,"owners_count":23805453,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-14T19:14:31.309Z","updated_at":"2025-07-17T19:33:24.974Z","avatar_url":"https://github.com/AbolDev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Image Background Remover Web Application\r\n\r\nThis web application allows users to remove backgrounds from images with ease using the **RMBG-1.4** model from Hugging Face. With an intuitive interface and advanced functionality, the application provides fast, efficient, and high-quality background removal, suitable for various use cases.\r\n\r\n## Key Features\r\n\r\n- **Efficient Background Removal:** Utilizes the RMBG-1.4 model for fast and precise background extraction in seconds.\r\n- **User-Friendly Interface:** Drag-and-drop functionality, along with a clean, responsive design, makes the application easy to use.\r\n- **Dark \u0026 Light Modes:** Switch between dark and light themes for optimal visibility and user experience.\r\n- **Instant Preview \u0026 Comparison:** Users can preview the processed image before downloading, with a slider to compare the original and processed images.\r\n- **Download Processed Images:** Save images directly after background removal, with the option for high-quality output.\r\n- **Lightweight \u0026 High-Speed:** The RMBG-1.4 model is optimized for performance, allowing it to run on regular servers without requiring high-end resources.\r\n- **Cross-Browser Compatibility:** Tested across major web browsers to ensure consistent functionality and appearance.\r\n\r\n## Technology Stack\r\n\r\n- **Backend:** Python, Flask\r\n- **Model:** RMBG-1.4 (Hugging Face)\r\n- **Frontend:** HTML, CSS, JavaScript\r\n\r\n## Screenshot\r\n\r\n### Interface Before Upload\r\nThis is the interface before an image is uploaded:\r\n\r\n![Interface Before Upload](interface-screenshot-before.jpg)\r\n\r\n### Interface After Upload\r\nThis is the interface after an image is uploaded and ready for background removal:\r\n\r\n![Interface After Upload](interface-screenshot-after.jpg)\r\n\r\n## Installation\r\n\r\nTo set up and run this project locally, follow these steps for both Windows and Linux:\r\n\r\n### 1. Clone the Repository\r\nFirst, clone the repository to your local machine:\r\n```bash\r\ngit clone https://github.com/AbolDev/image-background-remover-webapp.git\r\ncd image-background-remover-webapp\r\n```\r\n\r\n### 2. Create a Virtual Environment\r\nIt's recommended to create a virtual environment to manage dependencies independently of other projects.\r\n\r\n#### On Windows\r\n1. Open Command Prompt (CMD) or PowerShell.\r\n2. Run the following commands:\r\n   ```bash\r\n   python -m venv venv\r\n   venv\\Scripts\\activate\r\n   ```\r\n\r\n#### On Linux\r\n1. Open your terminal.\r\n2. Run the following commands:\r\n   ```bash\r\n   python3 -m venv venv\r\n   source venv/bin/activate\r\n   ```\r\n\r\nAfter activating the environment, you should see `(venv)` at the beginning of your command line prompt, indicating that the virtual environment is active.\r\n\r\n### 3. Install Dependencies\r\nWith the virtual environment active, install the required dependencies using `pip`:\r\n```bash\r\npip install -r requirements.txt\r\n```\r\n\r\n### 4. Run the Application\r\nOnce the dependencies are installed, start the Flask web server:\r\n\r\n```bash\r\npython app.py\r\n```\r\n\r\nBy default, the application will be accessible at `http://127.0.0.1:80`.\r\n\r\n### Deactivating the Virtual Environment\r\nWhen you’re done, you can deactivate the virtual environment:\r\n\r\n- On Windows, type:\r\n  ```bash\r\n  venv\\Scripts\\deactivate\r\n  ```\r\n  \r\n- On Linux, type:\r\n  ```bash\r\n  deactivate\r\n  ```\r\n\r\nFollowing these steps ensures a clean and isolated setup, making it easier to manage dependencies and prevent conflicts.\r\n\r\n## Usage\r\n\r\n1. **Upload Image**: Use the “Click to upload” or drag-and-drop your image file into the designated area.\r\n2. **Remove Background**: Click the \"Remove Background\" button to start processing.\r\n3. **Download Image**: Once processing is complete, click \"Download Image\" to save the image with the background removed.\r\n\r\n## Example of Background Removal\r\n\r\nBelow is an example showing an image before and after background removal:\r\n\r\n**Original Image:**\r\n\r\n![Before Image](t4.png)\r\n\r\n**Processed Image:**\r\n\r\n![Processed Image](processed_image.png)\r\n\r\n## Model Information\r\nThe background removal is powered by the **RMBG-1.4** model, provided by Hugging Face. This model is lightweight and designed to operate on typical server setups, offering reliable and high-speed performance without requiring GPU resources. For more details, visit the [model page on Hugging Face](https://huggingface.co/briaai/RMBG-1.4).\r\n\r\n---\r\n\r\nFeel free to reach out for support or contribute to the project through the repository’s issue tracker. We welcome any feedback or suggestions to enhance the application.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faboldev%2Fimage-background-remover-webapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faboldev%2Fimage-background-remover-webapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faboldev%2Fimage-background-remover-webapp/lists"}