Dream Background Remover brings Replicate's AI capabilities directly into GIMP for intelligent background removal.
- ๐จ AI Background Removal: Remove backgrounds from your images
- ๐ค AI Model Selection: Choose between multiple models
- ๐ Smart Layer Management: Automatically creates properly named layers
- ๐ Multi-Language Support: Setup to support multiple languages via i18n
- ๐๏ธ Native GIMP Integration: Works seamlessly within your GIMP workflow
- GIMP 3.0.x
- Python 3.8+
- Replicate API key (paid account required)
Install the required Python library:
pip install replicate-
Download the latest release from GitHub Releases
-
Extract the release
This will create a folder named
dream-background-remover-{version}(e.g.,dream-background-remover-1.0.5) -
Move to your GIMP plugins folder with the correct name:
Rename and move the extracted folder to exactly
dream-background-removerin your GIMP plugins directory:- Linux:
~/.config/GIMP/3.0/plug-ins/dream-background-remover/ - Windows:
%APPDATA%\GIMP\3.0\plug-ins\dream-background-remover\ - macOS:
~/Library/Application Support/GIMP/3.0/plug-ins/dream-background-remover/
Example for Linux:
# Extract creates dream-background-remover-1.0.5/ unzip dream-background-remover-1.0.5.zip # Move to correct location with correct name mv dream-background-remover-1.0.5 ~/.config/GIMP/3.0/plug-ins/dream-background-remover
- Linux:
-
Make executable (Linux/macOS only):
chmod +x ~/.config/GIMP/3.0/plug-ins/dream-background-remover/dream-background-remover.py -
Restart GIMP
Building translations (optional): If you need languages other than English, run python3 scripts/build-translations.py in the plugin directory after installation.
To install Dream Background Remover on Arch Linux, you can install it from the AUR.
yay -S dream-background-remover-
Find your GIMP plugins directory (paths listed above)
-
Create plugin directory:
mkdir -p ~/.config/GIMP/3.0/plug-ins/dream-background-remover/ -
Copy all Python files:
cp *.py ~/.config/GIMP/3.0/plug-ins/dream-background-remover/
-
Build and install translations (Optional):
python3 scripts/build-translations.py cp -r locale ~/.config/GIMP/3.0/plug-ins/dream-background-remover/ -
Make executable:
chmod +x ~/.config/GIMP/3.0/plug-ins/dream-background-remover/dream-background-remover.py
git clone https://github.com/zquestz/dream-background-remover.git
cd dream-v
pip install replicate
python3 scripts/build-translations.py # optional, defaults to English
ln -s $(pwd) ~/.config/GIMP/3.0/plug-ins/dream-background-removerImportant: Use the same Python that GIMP uses. If pip install replicate doesn't work:
# System-wide installation
sudo pip install replicate
# User installation (recommended)
pip install --user replicate
# Ensure Python 3
pip3 install replicateIf you get the "replicate not installed" error on macOS:
-
Locate GIMP's Python by opening the Python Console:
Filters โ Development โ Python-Fu -
Run this command in the console:
import sys; print(sys.executable)
You should see something like:
/Applications/GIMP.app/Contents/MacOS/python3 -
Install replicate using GIMP's Python from Terminal:
# Change to GIMP's Python directory cd /Applications/GIMP.app/Contents/MacOS # Ensure pip is installed ./python3 -m ensurepip # Install replicate ./python3 -m pip install replicate
- Visit Replicate
- Generate an API key
- Keep your key secure and monitor usage/costs
- 851 Labs Background Remover:
851-labs/background-remover(Default - Fast and cost-effective) - Bria Remove Background:
bria/remove-background(High quality, more expensive) - Recraft Remove Background:
recraft-ai/recraft-remove-background(Tuned for AI, balanced performance)
Users can select their preferred model in the plugin interface.
- Each image generation/edit counts toward your API usage
- Monitor your usage at Replicate to avoid unexpected charges
- Open an image in GIMP
- Launch Dream Background Remover:
Filters โ AI โ Dream Background Remover... - Enter your API key (saved automatically for future use)
- Select AI model:
- 851 Labs Background Remover: Fast and cost-effective (recommended for most users)
- Bria Remove Background: Higher quality results, higher cost
- Recraft Remove Background: Tuned for AI, balanced performance and cost
- Select mode:
- Create Layer: Creates a layer in your current image with the background removed
- Create File: Create a new image with your background removed
- Generate: Click "Remove Background" and watch the progress
- Result: New layer or file appears with the background removed
Dream Background Remover is fully translated and available in:
- ๐บ๐ธ English (default)
- ๐ช๐ธ Spanish (complete)
- ๐ซ๐ท French (complete)
- ๐ต๐น Portuguese (complete)
- ๐ท๐บ Russian (complete)
- ๐ฏ๐ต Japanese (complete)
- ๐ฎ๐ณ Hindi (complete)
- ๐ง๐ฉ Bengali (complete)
- ๐จ๐ณ Chinese (Simplified) (complete)
- ๐น๐ผ Chinese (Traditional) (complete)
- ๐ฐ๐ท Korean (complete)
The plugin automatically detects your system language and uses the appropriate translation. If your language isn't available, it defaults to English.
# Extract new translatable strings
python3 scripts/update-pot.py
# Update existing translations
python3 scripts/update-translations.py
# Build compiled translations
python3 scripts/build-translations.pyThe plugin is organized into focused modules:
dream-background-remover.py- Main GIMP plugin entry pointdialog_gtk.py- GTK user interface componentsdialog_events.py- Event handling and user interactionsdialog_threads.py- Background processing and threadingapi.py- Replicate API integrationintegrator.py- GIMP-specific operationssettings.py- Configuration persistencei18n.py- Internationalization support
"replicate not installed" warning
- Install with:
pip install replicate - Ensure you're using GIMP's Python environment
Plugin doesn't appear in menu
- Check file permissions:
chmod +x dream-background-remover.py - Restart GIMP after installation
- Verify files are in correct plugins directory
API errors
- Verify your API key is correct
- Check your quota at Replicate
- Monitor costs to avoid unexpected charges
Interface problems
- Check GIMP's Error Console:
Windows โ Dockable Dialogs โ Error Console - Ensure translations are built:
python3 scripts/build-translations.py - Report UI issues with screenshots
- Check the Error Console in GIMP for specific error messages
- Verify all requirements are installed correctly
- Check file permissions on the plugin directory
- Review API quotas if getting timeout errors
We welcome translations! Here's how to contribute:
- Copy the template:
cp locale/dream-background-remover.pot locale/[YOUR_LANG].po - Translate the strings using Poedit, Lokalize, or any text editor
- Test your translation: Build with
python3 scripts/build-translations.py - Submit a pull request with your
.pofile
Translation Guidelines:
- Keep UI text concise but clear
- Use GIMP's existing terminology for your language
- Preserve HTML tags and placeholders like
{count},{url} - Test that text fits in the interface
- Fork the repository
- Create a feature branch
- Follow the existing code style
- Update translations if adding new strings
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
Built with the Replicate API.
