Basic Guide on how this bash plugin worksAttachment:
290977616-cf82c7b2-4ff1-42ea-bff5-6ba1b248ce21.png [ 533.34 KiB | Viewed 23101 times ]
1. This plugin has two versions, stand alone mode and GEGL Effects special build. The GEGL Effects is the one that ships with a layer effects engine and requires switching tabs to "run bash command on Linux" and then flipping a tab here.
Attachment:
enable_to_load.png [ 6.64 KiB | Viewed 23116 times ]
2. This bash plugin within GEGL Effects is only a subsection in my layer effects/text styling engine. The full plugin does much more then just bash as its primary focus is text styling effects not bash.
3. The bash plugin exports the content of the layer as (/tmp/in.png) in the /tmp/ directory on Linux
A bash command with (tmp/in.png) and (tmp/out.png) in it like
rembg /tmp/in.png -o /tmp/out.png
works because REMBG is calling the layer file that GEGL exported and GEGL is instructed to load /tmp/out.png
/tmp/in.png is the layer image file exported and /tmp/out.png is the file GEGL is instructed to load.
4. The checkbox when pressed will freeze Gimp if done correctly, then it has to be unchecked within a few seconds. If it is not unchecked after checking the command will work but take several minutes to load. The checkbox makes things much faster.
5. The GEGL Box below the bash box is totally optional and not required for the filter to work, it is meant to add GEGL syntax after the bash command.
6. The default command in the bash box is REMBG that assumes REMBG is installed on the users system.
7. Here is a list of tools I call with bash
**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/so yeah, if you can call bash with these tools using /tmp/in.png as the input and /tmp/out.png as the final output that is all you need to use this plugin.