Giter VIP home page Giter VIP logo

remove-bg's Introduction

Remove Bg CLI

The Remove Bg CLI tool is a powerful and efficient command-line utility designed to remove backgrounds from images seamlessly. It streamlines the process of isolating foreground objects by eliminating the background, providing users with clean, transparent images.

It's based on Rembg open-source package.

Installation

To install Remove Bg CLI, you will need to have Python and pip installed on your system. Run this command:

pip install -i https://test.pypi.org/simple/ remove-bg

It is important to note that this package is published on TestPyPI.

Usage

Unlike most utilities, Remove Bg uses a different name for its executable script: rmbg. This is done for simplicity.

Remove Bg has three commands: for, init and config.

To remove background for an image, use for command:

rmbg for cat.png

If you want to have a directory where you will place all the images you want to process, use init command to initialize this directory:

rmbg init

With this directory, you can run for command with --directory parameter and it will search for images in it:

rmbg for --directory cat.png

By default, init command creates remove-bg directory in your home directory, but you can change this with the config command:

rmbg config --directory ~/dir/images

Remove Bg CLI configuration can be found in ~/.config/rmbg.toml or in ~/.rmbg.toml.

If you want to get the value of a configuration parameter, use config command with --get option:

rmbg config --get directory

To see help, use the following command:

rmbg --help

You can also get help for a specific command:

rmbg for --help

remove-bg's People

Contributors

vladhaidukkk avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.