A special build of my GEGL Layer Effects engine that uses this plugin internally on its 9th tab "Run a bash command on Linux" can be downloaded here and the same rules apply. This plugin works as both a stand alone and a tool inside a special build of GEGL Effects.
This plugin is literally just a bash terminal and the ability to run the bash command with a checkbox going on and off. If you have AI's installed (like REMBG, GFPGAN, ect... that means you can run the through Gimp in this GEGL plugin then apply more GEGL syntax after ward. All GEGL is doing is grabbing a final output /tmp/out.png afte running a bash string that the user wrote.
REMBG https://pypi.org/project/rembg/
GFPGAN https://github.com/TencentARC/GFPGAN/
REALESRGAN https://github.com/xinntao/Real-ESRGAN
GMIC (remember the built in AI's GMIC has they can be used too) https://gmic.eu/
Image Magick https://imagemagick.org/
REMBG + GEGL's Outline ability
REMBG, GFPGAN, GMIC and GEGL together
GEGL (outside of Gimp) followed by AI background removal and GEGL inside Gimp.
I shouldn't have to say this but it looks like Windows XP because of a Linux theme. Moving on...
-
You need the AI/whatever app installed on your machine and check to make sure said AI/whatever app works through bash.
-
The first command is always the bash string followed by optional GEGL syntax. The only way GEGL commands can come first is if users call the systems gegl outside of Gimp and that technically still is bash.
-
No matter what the bash string is GEGL is only programmed to export the current layer as "/tmp/in.png" and call the final result "/tmp/out.png" so use those two lines in your bash string for the input and final output.
-
Box 1 is for bash inputs such as rembg /tmp/in.png -o /tmp/out.png
-
The checkbox is to run the bash command; after it is ran it should be disabled quickly. Gimp will freeze and unfreeze if done correctly. If it isn't unchecked quickly it will take dozens of times longer to load.
-
Box 2 is for optional GEGL syntax after a bash command. You don't have to put anything here if you don't write GEGL syntax.
-
The previous /tmp/out.png image will load (if it exist there) and will only go away if the checkbox is checked/unchecked (to update it) or if the file is manually deleted. Just get use to the previous image loading on start up and know it will go away.
Linux
/home/(USERNAME)/.local/share/gegl-0.4/plug-ins
THIS PLUGIN DOES NOT WORK ON WINDOWS OR FLATPAK LINUX AS THAT CAN'T CALL BASH
Then restart Gimp and go to GEGL operation drop down list and look for "Bash Plugin" or "GEGL Effects Continual" and go to the 9th tab named "Run a bash command on Linux"
Click the build all button to compile everything but you can also read here how to compile individual files.
To compile and install you will need the GEGL header files (libgegl-dev
on
Debian based distributions or gegl
on Arch Linux) and meson (meson
on
most distributions).
meson setup --buildtype=release build
ninja -C build
If you have an older version of gegl you may need to copy to ~/.local/share/gegl-0.3/plug-ins
instead (on Ubuntu 18.04 for example).
BEAVER RECOMMENDS YOU USE A MODERN VERSION OF GEGL. NO GUARANTEE DATED VERSIONS OF GIMP WILL WORK WITH THIS PLUGIN
This plugin cannot work on Windows because it calls native Linux bash. Windows Sub System for Linux version may come soon but as of now it is not avalible.