Remove the backgrounf of your images JPG automatically.
RemoveBG
is a command line tool that allows you to remove the backgrounf of your JPG file automatically.
It only supports JPG, JPEG and PNG.
- Python > 3.7, < 3.12
- Pip
- Docker (optional)
- Clone the repository:
git clone https://github.com/CleytonBonamigo/removebg.git cd removebg
- Create new virtual environment:
#To create a new Virtual Env: python -m venv removebg #You can change the "removebg" name of venv to whatever you want. #To exit the venv deactivate #If you want to enter again into created Virtual Env source removebg/bin/activate #Change "removebg" for whatever name that you named your venv.
- Install all requirements from pip:
pip install --no-cache-dir -r requirements.txt
- Execute sending the input image and de desired output:
python ./src/removebg.py input.jpg #eg: img/portfolio-perfil.jpeg
It takes a while to remove the background, but it works 😆.
- Clone the repository:
git clone https://github.com/CleytonBonamigo/removebg.git cd removebg
- Run the docker command to set up the environment:
docker compose up -d
- Connect into container:
docker exec -it removebg bash
- Execute sending the input image and de desired output:
python ./src/removebg.py input.jpg #eg: img/portfolio-perfil.jpeg