Automatic background removals with support for PNGs, JPEGs, WEBPs, GIFs and MP4s.
Requires Python >= 3.9
pip install -r requirements.txt
Version Used: ImageMagick 7.1.x Q16+HDRI
Download: https://imagemagick.org/script/download.php
Make sure the architecture matches your Python version (x64 or x86).
-
During installation, select the following options:
- Add application directory to your system path
- Install development headers and libraries for C and C++
- Install FFMPEG
-
File Location:
/configuration/bot_config.py
BOT_TOKEN
— Acquired from Discord Developer Portal after creating a bot applicationCOMMAND_PREFIX
— A single-character string to invoke bot commands (e.g. "$")
-
File Location:
/configuration/command_variables/bgr_variables.py
MAX_FRAMES
— Maximum number of frames allowed for multi-frame inputsMAX_PX_IMAGE
— Maximum pixel count (width or height) allowed for single-frame inputsMAX_PX_ANIMATED
— Maximum pixel count (width or height) allowed for multi-frame inputs
Command | Description |
---|---|
help | Standard Help Command |
helpbgr | Help Command For Background Removal |
rembg | Background Removal 1 |
Footnotes
-
Accepts an attachment or a reference attachment, meaning it could either be an uploaded image, or a reply to a message containing an uploaded image. ↩