► Containerized background remover built using HTMX + Express.js
Developed using these tools.
BackGone provides a simple and intuitive interface for users to drag and drop or click to upload images. The dockerized application processes the images by removing the background and returns the processed image, which can be downloaded by the user.
>> See the live instance Backgone here (hosted on Cloud Run)
- Drag and Drop Upload: Easily upload images by dragging and dropping them into the designated area.
- Background Removal: Uses the
rembgto remove the background from uploaded images. - Download Processed Images: Download the processed images with the background removed.
- Responsive Design: The user interface is built with Tailwind CSS to ensure responsiveness and a modern look.
└── backgone/
├── Dockerfile
├── backgone_venv/
├── bs-config.js
├── docker-compose.yml
├── nodemon.json
├── package-lock.json
├── package.json
├── postcss.config.js
├── process_image.py
├── processed/
├── public
│ ├── assets
│ │ └── logo.svg
│ └── styles
│ └── tailwind.css
├── requirements.txt
├── server.js
├── tailwind.config.js
├── uploads/
└── views
└── index.ejsRequirements
- Node.js: Version 18 or higher
- Python: Version 3.11 or higher
- Docker: For containerization (optional but recommended)
- Clone the backgone repository:
git clone https://github.com/0xdany/backgone- Change to the project directory:
cd backgone- Activate virtual environment:
source backgone_venv/bin/activate- Install the dependencies:
npm install
pip install --no-cache-dir -r requirements.txt- Download
.onnxmodel
mkdir models
curl -L -o models/u2net.onnx https://github.com/danielgatis/rembg/releases/download/v0.0.0/u2net.onnx
Use the following command to run backgone on port: 8080:
npm run devUse the following command to build the image:
docker-compose build
docker-compose upContributions are welcome! Here are several ways you can contribute:
- Submit Pull Requests: Review open PRs, and submit your own PRs.
- Join the Discussions: Share your insights, provide feedback, or ask questions.
- Report Issues: Submit bugs found or log feature requests for Backgone.
Contributing Guidelines
- Fork the Repository: Start by forking the project repository to your GitHub account.
- Clone Locally: Clone the forked repository to your local machine using a Git client.
git clone https://github.com/0xdany/backgone
- Create a New Branch: Always work on a new branch, giving it a descriptive name.
git checkout -b new-feature-x
- Make Your Changes: Develop and test your changes locally.
- Commit Your Changes: Commit with a clear message describing your updates.
git commit -m 'Implemented new feature x.' - Push to GitHub: Push the changes to your forked repository.
git push origin new-feature-x
- Submit a Pull Request: Create a PR against the original project repository. Clearly describe the changes and their motivations.
Once your PR is reviewed and approved, it will be merged into the main branch.