gitmyhub

gimp-plugins

Python ★ 2 updated 1d ago

AI Image Edit & Create right inside the Gnu Image Manipulation Program (GIMP). Best free and open-source image editing.

A set of Python plugins that bring AI background removal, upscaling, and prompt-based image editing directly into GIMP 3's menus.

PythonGIMP 3PyGObjectPyTorchstable-diffusion.cppsetup: hardcomplexity 4/5

This project is a set of Python plugins that add AI powered image editing tools to GIMP 3, the free open source image editor. GIMP is similar to Photoshop but free and community built. The plugins use GIMP's own Python programming interface to hook into the app's menus.

Four plugins are included. Background Remove takes the current layer, sends it to a command line tool called backgroundremover, and brings back a version with the background stripped out. AI Upscale sends a layer to a PyTorch based image upscaler and returns a version that is four times larger with more detail added. AI Edit lets you describe a change in plain text and applies it using a local diffusion model plus a vision capable language model, running through a tool called sd-cli. There is also a bare bones test plugin meant as a starting template for people who want to write their own.

Every plugin follows the same basic pattern: export the current layer as a temporary image file, hand it off to a command line or machine learning process, then load the result back into GIMP as a new layer.

Setup requires GIMP 3.0 or newer, Python 3, and the readme strongly recommends a CUDA capable graphics card for the upscaling and editing plugins, since they can be slow or fail without enough video memory. An experimental installer script can attempt to handle dependencies automatically, or you can install each plugin's Python packages yourself and symlink the plugin folders into GIMP's plugin directory.

The README is upfront that GIMP plugins, like plugins for most applications, can run arbitrary commands on your computer, so it recommends reviewing the code or testing in a sandbox before trusting it. Model file paths for the AI Edit and AI Image tools can be changed either by editing the Python files directly or by entering paths into the plugin dialog at runtime. The project is released under the GNU General Public License version 3, meaning any modified or redistributed copies must also be shared under the same open license.

Where it fits