Post all Gimp scripts and script writing questions here
Post a reply

Re: GEGL Layer Effects and Text Styling filter

Mon Jul 24, 2023 2:27 pm

GEGL Effects and GEGL Bevel now have a sharp bevel mode. The stand alone GEGL Bevel version does more options for sharp bevel then the GEGL Effects implementation. Also these plugins now appear in the main menu in Gimp 2.99 under filters> Text Styling

sharp_bevel_champ.png
sharp_bevel_champ.png (291.01 KiB) Viewed 34577 times


2023-07-22_01-19.png
2023-07-22_01-19.png (807.27 KiB) Viewed 34577 times


update_promo.png
update_promo.png (695.41 KiB) Viewed 34577 times




DOWNLOAD HERE

https://github.com/LinuxBeaver/GEGL-Eff ... uly22_2023

Windows Binaries go in
C:\Users\(USERNAME)\AppData\Local\gegl-0.4\plug-ins

Linux Binaries go in
/home/(USERNAME)/.local/share/gegl-0.4/plug-ins

Linux Flatpak binaries go in
/home/(USERNAME)/.var/app/org.gimp.GIMP/data/gegl-0.4/plug-ins

Make sure all old binaries are overwritten with the latest versions.

Re: GEGL Layer Effects and Text Styling filter

Tue Aug 01, 2023 6:52 pm

(Instructions above should tell you where the binaries go)

GEGL Effects got a mini update that allows it to mimic "Plastic" in Glass on Text. Its not exactly the same but close.

Bevel Multiply blend mode + Glass on Text is key.

update_august_1st.png
update_august_1st.png (169.67 KiB) Viewed 34544 times


257669956-3e6dca60-6aac-4618-8255-3296b43d7ff2.png
257669956-3e6dca60-6aac-4618-8255-3296b43d7ff2.png (398.04 KiB) Viewed 34543 times



Download binaries and code, and download instructions here
https://github.com/LinuxBeaver/GEGL-Eff ... uly22_2023

Re: GEGL Layer Effects and Text Styling filter

Mon Aug 07, 2023 9:29 pm

*AUGUST 24 2023 THIS UPDATE IS DONE.

GEGL Effects may be getting an update that allows it to call most major text styling plugins of mine.

The major text styling plugins are

Glossy Balloon

https://github.com/LinuxBeaver/GEGL-glo ... g/releases
Custom Bevel
https://github.com/LinuxBeaver/GEGL-Cus ... l/releases
Clay
https://github.com/LinuxBeaver/GEGL-Clay-Bevel/releases
GMM
https://github.com/LinuxBeaver/Glass_Me ... n/releases
Chrome Text
https://github.com/LinuxBeaver/GEGL---C ... r/releases
Rock Text
https://github.com/LinuxBeaver/GEGL-Stone-Text/releases
Sharp Bevel
https://github.com/LinuxBeaver/GEGL_sha ... n/releases

They will all be part of GEGL Effects. Below are images of a test I did with Glossy Balloon (as part of GEGL Effects)

Image

Image

Here is a short video of a test calling all my major text styling plugins. Notice the list cycling through them?
https://cdn.discordapp.com/attachments/ ... 091326.mp4

All major text styling plugins will still have stand alone repos and the good news is they (the major text stylers) won't even need to be updated to use in the next release of GEGL Effects. Though it is always a good practice to override all old binaries with the latest versions. All major text stylers will keep their individual repos unlike Bevel and Inner Glow; which individual repos merged with GEGL Effects.

Two trade offs will exist though.

1. GEGL Effects will go from 6 binaries to 18 binaries.

2. The plugins inside GEGL Effects will have less options then their stand alone versions and they will all share common sliders.

(users will be able to downgrade if they don't like this)

Re: GEGL Layer Effects and Text Styling filter

Fri Aug 25, 2023 5:23 pm

*August 26 update to fix a conflict with gegl_command.py (said update applies to both stable and experimental GEGL Effects)

GEGL Effects has an experimental branch that is stable and crash free but with a ton of new options

It can call my other major text styling plugins.

Clay Being used inside GEGL Effects
preview_3.png
preview_3.png (553.06 KiB) Viewed 34445 times


Glass Metal Marble being used inside GEGL Effects
preview_4.png
preview_4.png (671.76 KiB) Viewed 34445 times


Extrusion Long Shadow being used inside GEGL Effects
preview.png
preview.png (407.72 KiB) Viewed 34445 times




Sharp Bevel being used inside GEGL effects

Image

Glossy Balloon being used inside GEGL Effects
Image


It can also use Rock Text, Custom Bevel and Chrome Text (not pictured here)

IF YOU ALREADY HAVE GEGL EFFECTS OVERWRITE ALL BINARIES

You'll find them in a 8th tab called "Alt Text Styles and Extrusion"

Read instructions to download. It is not in the normal release section.

Source Code of experimental branch
https://github.com/LinuxBeaver/GEGL-Eff ... tal-update

Windows Binaries of experimental branch
https://github.com/LinuxBeaver/GEGL-Eff ... naries.zip

Linux Binaries of experimental branch
https://github.com/LinuxBeaver/GEGL-Eff ... naries.zip




LOCATION TO PUT BINARIES. THEY DO NOT GO IN THE DEFAULT PLUGINS DIRECTORY



Windows

C:\Users\(USERNAME)\AppData\Local\gegl-0.4\plug-ins

Linux

/home/(USERNAME)/.local/share/gegl-0.4/plug-ins

Linux (Flatpak includes Chromebook)

/home/(USERNAME)/.var/app/org.gimp.GIMP/data/gegl-0.4/plug-ins


This was all done in one plugin.

Image

Image

Enjoy the experimental update branch and please note that it may forever stay a seperate branch as it is too complicated for novices. I spent over two weeks testing it for crashes and it now has the green light. I'd love to hear feedback.

Re: GEGL Layer Effects and Text Styling filter

Fri Aug 25, 2023 9:21 pm

The last one is stunning!
You're good with GEGL, you're very good!

Re: GEGL Layer Effects and Text Styling filter

Fri Aug 25, 2023 10:08 pm

ATTENTION.
Information only for gegl-command.py users.
In Gimp-2.10.34 Win_64bit exactly one gegleffectspending.dll file causes this conflict.

Re: GEGL Layer Effects and Text Styling filter

Fri Aug 25, 2023 10:37 pm

MareroQ wrote:ATTENTION.
Information only for gegl-command.py users.
In Gimp-2.10.34 Win_64bit exactly one gegleffectspending.dll file causes this conflict.


Can reproduce on Hue Chroma but not Hue Saturation. I am investigating this.

Re: GEGL Layer Effects and Text Styling filter

Sat Aug 26, 2023 9:32 am

MareroQ wrote:ATTENTION.
Information only for gegl-command.py users.
In Gimp-2.10.34 Win_64bit exactly one gegleffectspending.dll file causes this conflict.


Bug has been solved on both the stable branch and experimental branch.

CULPRIT.png
CULPRIT.png (119.48 KiB) Viewed 34414 times


THESE TWO LINES WERE THE CULRPIT CAUSING THE CRASH.

UI_META was attached under an ENUM list, that is an illogical statement for GEGL.

Here is the update for the stable branch of GEGL Effects (it doesn't have advance text styler plugins)
https://github.com/LinuxBeaver/GEGL-Eff ... L/releases


Experimental Branch fix (that includes advance text styler plugins

https://github.com/LinuxBeaver/GEGL-Eff ... al-update/

Re: GEGL Layer Effects and Text Styling filter

Thu Sep 21, 2023 2:55 pm

Okay guys lets try something that I've been talking about for over a year. Importing GEGL presets.


Download this text file linked here
Awesome Text

This is where GEGL Effects Continual or any GEGL filter accepts presets
file.png
file.png (41.83 KiB) Viewed 34332 times


Then feed GEGL Effects Continual the text file via import and you'll get a text style. This is because that text file you gave it was instructions.

effects_import.png
effects_import.png (510.48 KiB) Viewed 34332 times



For this to work 100% you must be using a version of GEGL Effects released July 2023 and up. If you are using an earlier version, it will still load but the bevel and extra outline may appear different. You can share text file presets on your computer via export or with friends by giving them a text file and assuming they have GEGL Effects continual. This preset is obviously editable and boots up all the parameters of your filter on a custom setting.

Enjoy, I hope this method helps people make better plugins.

Re: GEGL Layer Effects and Text Styling filter

Thu Sep 21, 2023 3:39 pm

Works nicely here. I had to do layer to image size first because the effect was cut off at the text boundary the first time I tried it.

Image

Re: GEGL Layer Effects and Text Styling filter

Thu Sep 21, 2023 3:39 pm

Erisian wrote:Works nicely here. I had to do layer to image size first because the effect was cut off at the text boundary the first time I tried it.

[ Image ]


Yes, if you read the instruction guide for GEGL Effects it expects the user to run layer to image size or rasterize text first.

Re: GEGL Layer Effects and Text Styling filter

Thu Sep 21, 2023 3:51 pm

Image


Try these text files as imports. They make these text styles

https://cdn.discordapp.com/attachments/ ... /indi_text
try_this_one.png
try_this_one.png (847.71 KiB) Viewed 34597 times


https://cdn.discordapp.com/attachments/ ... 4/gel_text
gel_text.png
gel_text.png (594.03 KiB) Viewed 34597 times



https://cdn.discordapp.com/attachments/ ... lass_metal
glass_metal.png
glass_metal.png (657.92 KiB) Viewed 34597 times


https://github.com/LinuxBeaver/Gimp_Lay ... s/releases

Re: GEGL Layer Effects and Text Styling filter

Mon Dec 11, 2023 1:10 pm

I could put my bash plugin that calls AI in a special build of GEGL Effects layer effects engine. It will be located in a 9th tab with a checkbox to run the bash string.
If done users will be able do anything and everything in one plugin.

Re: GEGL Layer Effects and Text Styling filter

Tue Dec 12, 2023 7:16 am

I got the bash plugin working in an unreleased version of GEGL Effects and ran REMBG with it. It looks to me like GEGL is more effective then any other method of Gimp plugin development.

viewtopic.php?f=9&t=20652&start=50


rembg_gegl_effects.png
rembg_gegl_effects.png (561.31 KiB) Viewed 34419 times

Re: GEGL Layer Effects and Text Styling filter

Tue Dec 12, 2023 7:34 am

Here is another preview of REMBG inside an unreleased version of GEGL Effects with the new GEGL bash plugin. THIS IS SO EXCITING!!!!

rembg_in_gegl_effects.png
rembg_in_gegl_effects.png (611.98 KiB) Viewed 34418 times

Re: GEGL Layer Effects and Text Styling filter

Tue Dec 12, 2023 3:40 pm

ok, I got the Bash plugin working in GEGL Effects consistently and it appears to be stable but there is one cosmetic bug



AI_in_gegl_effects.png
AI_in_gegl_effects.png (1.09 MiB) Viewed 34403 times


This text box is in the wrong area and I can't put it where it should be.
teddy.png
teddy.png (358.71 KiB) Viewed 34403 times

Re: GEGL Layer Effects and Text Styling filter

Tue Dec 12, 2023 5:11 pm

THE BUG HAS BEEN SOLVED AND AI IS WORKING PERFECT HERE

The update appears ready I'll be pushing it in a few hours or maybe the next day on a special branch of GEGL Effects that will only work on non flatpak Linux.

GEGL Effects main tab with outline and shadow
gegl_effects_main.png
gegl_effects_main.png (874.19 KiB) Viewed 34399 times


GEGL Effects Inner Glow Tab
ig_tab_gegl_effects.png
ig_tab_gegl_effects.png (915.57 KiB) Viewed 34399 times


GEGL Effects Bash running REMBG AI background removal
linux_only_gegl_effects_bash.png
linux_only_gegl_effects_bash.png (905.23 KiB) Viewed 34399 times



This version will not be able to co-exist with normal GEGL Effects CE, meaning if you already have GEGL Effects CE installed it will overwrite it.

Re: GEGL Layer Effects and Text Styling filter

Tue Dec 12, 2023 9:13 pm

GEGL Effects with AI integration from Bash. Linux Only version download here
You will find bash commands in the 9th tab under "Run a bash command" This is not the official Linux branch for GEGL Effects on Github.

Includes Source Code and Binaries
AI_BASH_GEGL_EFFECTS_Linux_only_binaries_code.zip
(512.86 KiB) Downloaded 53 times


Location to put binaries

Code:
/home/(USERNAME)/.local/share/gegl-0.4/plug-ins


If you already have these binaries overwrite all of them with the latest version. Then Restart Gimp and go to GEGL operation drop down list and look for GEGL Effects Continual
--

This only took a few seconds.

split_view_effects.png
split_view_effects.png (636.26 KiB) Viewed 34387 times


and it can save and apply the same setting on anything else.

But it looks like in this case the inner glow is to expansive on the turtle, so users will have to change the original setting.


preset_gegl.png
preset_gegl.png (686.5 KiB) Viewed 34387 times


If you compile this on Windows it will not work and just rapidly open cmd.exe windows over and over. In fact it will be just like the previous release of GEGL Effects but with a non working bash tool. If you use this on Flatpak or SNAP linux it will not work either as it will not be able to talk to bash.

Enjoy. Hopefully in the future we can get this working on Windows

Re: GEGL Layer Effects and Text Styling filter

Sun Dec 17, 2023 12:06 am

Basic Guide on how this bash plugin works

290977616-cf82c7b2-4ff1-42ea-bff5-6ba1b248ce21.png
290977616-cf82c7b2-4ff1-42ea-bff5-6ba1b248ce21.png (533.34 KiB) Viewed 33389 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.
enable_to_load.png
enable_to_load.png (6.64 KiB) Viewed 33404 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
Code:
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.

Re: GEGL Layer Effects and Text Styling filter

Sat Dec 23, 2023 4:35 pm

New Discovery. REMBG can be ran just by typing in grembg in the box due to a wrapper trick.

On Linux save this as grembg inside /home/username/.local/bin
Code:
#!/bin/bash

IN=/tmp/in.png
OUT=/tmp/out.png

COMMAND="rembg $IN -o $OUT "
$COMMAND 1>&2

exec cat $OUT


Then just type in grembg in the bashbox and run command by checking the box on and off.

grembg.png
grembg.png (611.32 KiB) Viewed 19627 times
Post a reply