Giter Site home page Giter Site logo

asachit / img-background-remover Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 5.0 190 KB

A python command-line program for removing the background of an image with a lot of features.

Python 100.00%
python python3 command-line-tool removebg removebackground background-remover linux

img-background-remover's Introduction

Remove Background

A Python command-line tool for removing the background from an image, cropping, formatting, masking, adding a background image, adding colors to the background, and so on...

It uses Remove-bg's Api

Get Api Key From Here, If the API key is not saved, you will be asked for it while running the tool.

Installation

Install Background Remover

  git clone https://github.com/ASACHIT/IMG-Background-Remover.git
  cd IMG-Background-Remover
  pip3 install -r requirements.txt
  python3 removebg.py  

All Input Flags

Flag/Arg Type Description
--setapi string Required. Your API key. Set or Edit Existing Api key
--img URL or IMG path Required. Direct Image Url or Image File Path
--filename string Optional. Set Output File Name. Default: bg_remove.png
--size string Optional. Output Image Resolution Size
--type string Optional. Type Of Foreground Object. Default: 'autodetect'
--format string Optional. Output Image File Format (PNG,JPG,ZIP). Default: 'png'
--crop boolean Optional. Wheather To Crop All Empty Regions Of Image. Default: 'False'
--bgcolor Hex/Name Optional. Add Solid Background Color. Accepts Hex color code or color name
--bgimgurl IMG URL Optional. Paste Another image in Background. Accepts Direct Image URL
--bgimgfile IMG FILE Optional. Paste Another Image in Background. Accepts Image File

or

use -h for manual list

Screenshot ๐Ÿ“ท

App Screenshot

small tutorial

Bg.Remover.mp4

Features

  • In a couple seconds, removes the background with just one command.
  • Both IMAGE FILE and DIRECT IMAGE URI are supported.
  • user can define output format
  • user can provide image resolution
  • Background color, image can be masked
  • Output image Can be Cropped
  • Cross platform
  • Everything can be done with just a few commands ๐Ÿ˜‰๐Ÿ˜œ

Found a bug ? or got an error? okay Feel Open to open an issue๐Ÿ˜…

img-background-remover's People

Contributors

asachit avatar

Stargazers

 avatar  avatar  avatar  avatar  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.