It is currently Fri Sep 11, 2026 11:32 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 40 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: AI vibe coded GEGL plugins
PostPosted: Wed May 14, 2025 5:26 am  (#21) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 2014
Rod wrote:
Thanks for sharing the newest GEGL filters Beaver! :)

Great stuff. I actually tried using ChatGPT to create a GEGL filter to warp images. This is what it gave me to work with.

#include <math.h>
#include <gegl-plugin.h>
#include <gegl-operations.h>

typedef struct {
  gfloat amplitude;
  gfloat frequency;
} GeglProperties;

#define GEGL_OP_AREA_FILTER
#define GEGL_OP_C_FILE "gegl-op-sinewarp.c"

#include "gegl-op.h"

static gboolean
process (GeglOperation       *operation,
         GeglBuffer          *input,
         GeglBuffer          *output,
         const GeglRectangle *roi,
         gint                 level)
{
  GeglProperties *o = GEGL_PROPERTIES (operation);
  GeglRectangle extent = *roi;

  for (gint y = extent.y; y < extent.y + extent.height; ++y) {
    for (gint x = extent.x; x < extent.x + extent.width; ++x) {
      gfloat fx = (gfloat)x + o->amplitude * sinf(o->frequency * (gfloat)y);
      gfloat fy = (gfloat)y;

      GeglColor *color = gegl_buffer_get_pixel(input, GEGL_ABYSS_NONE, fx, fy, NULL);
      gegl_buffer_set_pixel(output, &GEGL_RECTANGLE(x, y, 1, 1), 0, color);
      g_object_unref(color);
    }
  }

  return TRUE;
}

static void
gegl_op_class_init (GeglOpClass *klass)
{
  GeglOperationClass       *operation_class = GEGL_OPERATION_CLASS (klass);
  GeglOperationFilterClass *filter_class    = GEGL_OPERATION_FILTER_CLASS (klass);

  operation_class->name        = "gegl:sine-warp";
  operation_class->categories  = "warp";
  gegl_operation_class_set_keys (operation_class,
    "name",        "gegl:sine-warp",
    "description", "Applies a sine wave horizontal warp to the image",
    NULL);

  filter_class->process = process;
}

static void
gegl_op_node_init (GeglOperation *operation)
{
  GeglProperties *o = GEGL_PROPERTIES (operation);
  o->amplitude = 20.0;
  o->frequency = 0.05;
}


I don't know much about coding GEGL plugins, but i got an op error ( no such op for typedef ) running this in GEGL Graph.


Its junk code because it has a improper class key area and probably improper other things making it non-compiable. I can try to prompt it to make it work if you are intested.

Anyhow Deep Seek Made a new GEGL plugin that does Truchet tiles

Image

Image

You can download it and all other AI GEGL plugins here.

Windows Download

Linux Download

Source Code of all AI plugins only

Put in plugins folder mentioned above and overwite the ones you already have.

Windows

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

Linux

~/.local/share/gegl-0.4/plug-ins

Linux (Flatpak includes Chromebook)


Last edited by contrast_ on Wed May 14, 2025 5:37 am, edited 1 time in total.

Top
 Post subject: Re: AI vibe coded GEGL plugins
PostPosted: Wed May 14, 2025 5:32 am  (#22) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 2014
Oh yeah I forgot to mention I tried to make a plugin that called GMIC, I tried to make a plugin that mimicked resynthesizer and inpainted the color red, I tried to make a plugin that removed backgrounds, I tried to make a plugin that did Marero Q's request, I tried to make a plugin that did anisotropic smoothing, heart grids, ect... and all these ideas failed miserable.

Grok is the best AI for plugins. Deep Seek is the second best. They must be prompted at the start like

Before we begin it is important to follow these rules. We are writing GEGL plugin for GIMP, you can learn how to write GEGL plugins at  https://github.com/GNOME/gegl/tree/master/operations/common . Our plugins name will be smooth.c and gegl:aiplugin No code will ever come after the class key area   gegl_operation_class_set_keys(operation_class,
    "name",        "gegl:aiplugin",
    "title",       _("Windows 95 Desktop"),
    "reference-hash", "windows95geglfair3",
    "description", _("Renders a Windows 95-style desktop with a colored wallpaper and taskbar"),
    NULL);
}

#endif For example you will modify the name title and description of the class key area but nothing will come after the #endif or inbetween the  } When writing a GEGL plugin will you have a format like this #include "config.h"
#include <glib/gi18n-lib.h>
#include <gegl.h>
#include <gegl-plugin.h>

#ifdef GEGL_PROPERTIES

property_color(wallpaper_color, _("Wallpaper Color"), "0.0, 0.5, 0.5")
    description(_("Color of the desktop wallpaper (default is teal)"))

property_color(taskbar_color, _("Taskbar Color"), "0.75, 0.75, 0.75")
    description(_("Color of the taskbar (default is light gray)"))

#else

#define GEGL_OP_POINT_FILTER
#define GEGL_OP_NAME     smooth
#define GEGL_OP_C_SOURCE smooth.c always, the properties may be different ranging from property_double property_int property_seed and property_color ect.. but they will always be in this format.  Same with the #include libraries, there may be different ones but they will always be in that location. Remember the plugin has nothing to do with Windows 95,  we are just using Windows 95 as an example. Soon we will make a GEGL plugin for GIMP I just want you to follow these parameters


Then tell them to make a plugin with 10 versions of itself in a drop down list. (So you get 10 questions in one) and remove all non-working/poor working versions and only leave one or the few that are the best. That is what I do to avoid the infamous vibe coders rate limit. I also attach working vibe coded files like `candyspiral.c` to show the AI the previous file that worked and instruct it to heavily modify the previous file to match the new request. Also start out simple and expand the plugin.

And they are only good at making pattern gradient and shape plugins. They are bad at anything to do with blurs, smoothing, inpainting, sharpening, tonemapping, 3d stuff, or anything fancy in that regard


Also off topic. GEGL Effects third birthday was May 12 2025.


Top
 Post subject: Re: AI vibe coded GEGL plugins
PostPosted: Thu May 15, 2025 1:01 am  (#23) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16170
I kind of figured it was junk code Beaver. Thanks for the information on AI capabilities when it comes to Gimp plugin coding as well. I will have to dig into that, No need to create the warp plugin unless it's something you desire to do. And thank you for the newest GEGL plugins. :)

_________________
Image


Top
 Post subject: Re: AI vibe coded GEGL plugins
PostPosted: Thu May 15, 2025 6:35 am  (#24) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2648
Location: Poland
Hi contrast_
Thank you for trying to fulfill my wishes.

_________________
Image


Top
 Post subject: Re: AI vibe coded GEGL plugins
PostPosted: Sun May 18, 2025 4:50 am  (#25) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 2014
Update the plugins here to fix a clipping bug that the Gradient fx plugins have. Also, now gradient fx can apply on drop shadow. In the gradient fx drop down list the user will see inner glow, outline bevel, outline, and drop shadow all with gradients.

Image

Download all AI vibe coded plugins here

Windows Download

Linux Download

Source Code of all AI plugins only

Put in plugins folder mentioned above and overwite the ones you already have.

Windows

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

Linux

~/.local/share/gegl-0.4/plug-ins

Linux (Flatpak includes Chromebook)


Top
 Post subject: Re: AI vibe coded GEGL plugins
PostPosted: Tue May 20, 2025 12:04 am  (#26) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 2014
Image

Image

Image

Download from the links above to get the new shapes plugin Grok made. The URL is set to link to the latest zip file.


Top
 Post subject: Re: AI vibe coded GEGL plugins
PostPosted: Mon May 26, 2025 1:41 am  (#27) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 2014
The vibe coded plugins updated. Lots of new ones here and several bug fixes happened especially to the new distortion filter

Also a few new lb: filters are in here such as plugins I wrote that call AI filters as nodes.

A purple blended color overlay filter is above it
Image

Image

Image

Image

Image


Attachment:
vibe_coded_windows.zip [1.61 MiB]
Downloaded 3574 times


Attachment:
vibe_coded_linux.zip [444.17 KiB]
Downloaded 3557 times


Attachment:
vibe_coded_source_code.zip [492.52 KiB]
Downloaded 14352 times


Top
 Post subject: Re: AI vibe coded GEGL plugins
PostPosted: Sun Jun 01, 2025 2:00 am  (#28) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 2014
AI Vibe Coded Plugins updated, includes new liquid distortion plugin and the newest native filter outline deluxe which is a dependency.

Attachment:
vibe_coded_source_code.zip [524.02 KiB]
Downloaded 3492 times


Attachment:
vibe_coded_linux.zip [479.33 KiB]
Downloaded 3587 times


Attachment:
vibe_coded_windows.zip [1.75 MiB]
Downloaded 3570 times


LOCATION TO PUT BINARIES

Windows

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

Linux

~/.local/share/gegl-0.4/plug-ins

Linux (Flatpak includes Chromebook)

~/.var/app/org.gimp.GIMP/data/gegl-0.4/plug-ins


Top
 Post subject: Re: AI vibe coded GEGL plugins
PostPosted: Fri Jun 06, 2025 8:57 pm  (#29) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 2014
Truchet tiles has a bunch of new modes and there is a new plugin that does CMYK print previews and a star and heart background plugin. Also circle patterns got one or two new options.

Image

Image

Image

Image

Image

Image

Attachment:
vibe_coded_source_code.zip [571.58 KiB]
Downloaded 3438 times


Attachment:
vibe_coded_linux.zip [523.34 KiB]
Downloaded 3487 times


Attachment:
vibe_coded_windows.zip [1.9 MiB]
Downloaded 3548 times


Location to put Binaries

Windows

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

Linux

~/.local/share/gegl-0.4/plug-ins

Linux (Flatpak includes Chromebook)

~/.var/app/org.gimp.GIMP/data/gegl-0.4/plug-ins


Top
 Post subject: Re: AI vibe coded GEGL plugins
PostPosted: Mon Jun 09, 2025 10:32 am  (#30) 
Offline
GimpChat Member

Joined: Jun 22, 2019
Posts: 19
Hello contrast_,

thank you for your great contribution in the development of GEGL filters for Gimp!

Two things are important to me in the application and both concern the filters created with the help of AI for creating patterns.

The Cellular Noise filter does not appear in the Menu "Filters - AI GEGL" due to incomplete registration in the source code. In cellularnoise.c from line 514 and higher, "gimp:menu-path" and "gimp:menu-label" are missing.

All AI-GEGL filters brings the plugin Batcher when called to crash. Due to the corresponding error message, there might be a conflict with some convention in Python. Changing the filter name, for example in the cellularnoise.c, regarding "gegl_operation_class_set_keys" Line 511, from "ai/lb:cellularnoise" to "ai-lb:cellularnoise" and recompiling, did the trick. The filter runs in Batcher without problems!

This happend here in Linux Mint 21.3 Virginia with GIMP 3.04 from ppa.

Hope i could help a little here.

Again many Thanks for your hard and hopefully continuous work!

_________________
Gimp 3.0.8
Gimp 2.10.38 AppImage
OS: Linux Mint 21.3 Virginia based on Ubuntu 22.04


Top
 Post subject: Re: AI vibe coded GEGL plugins
PostPosted: Mon Jun 09, 2025 8:25 pm  (#31) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 2014
c-t-s wrote:
Hello contrast_,

thank you for your great contribution in the development of GEGL filters for Gimp!

Two things are important to me in the application and both concern the filters created with the help of AI for creating patterns.

The Cellular Noise filter does not appear in the Menu "Filters - AI GEGL" due to incomplete registration in the source code. In cellularnoise.c from line 514 and higher, "gimp:menu-path" and "gimp:menu-label" are missing.

All AI-GEGL filters brings the plugin Batcher when called to crash. Due to the corresponding error message, there might be a conflict with some convention in Python. Changing the filter name, for example in the cellularnoise.c, regarding "gegl_operation_class_set_keys" Line 511, from "ai/lb:cellularnoise" to "ai-lb:cellularnoise" and recompiling, did the trick. The filter runs in Batcher without problems!

This happend here in Linux Mint 21.3 Virginia with GIMP 3.04 from ppa.

Hope i could help a little here.

Again many Thanks for your hard and hopefully continuous work!


I just fixed celluar noise manually and reported the batcher problem to them.

https://github.com/kamilburda/batcher/issues/74

Thank you for reporting this If batcher devs fail to fix it in one week fix it, I'll rename ai/lb to ai-lb and give people a command to restore broken presets via `sed -i 's|ai/lb|ai-lb|g' filename.xcf` but in the mean time it will stay broke because I have faith they will fix it and I don't want to break presets/NDE filters.

The fix for celluar noise in the menu is here and once again if Batcher's crash is not fixed one week from now I will rename it. Once again thanks for the valuable feedback.

Attachment:
cellular_noise_code_and_binaries.zip


Top
 Post subject: Re: AI vibe coded GEGL plugins
PostPosted: Tue Jun 10, 2025 1:08 pm  (#32) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 2014
Its fixed on the latest batcher build

https://github.com/kamilburda/batcher/

Attachment:
2025-06-10_14-06.png
2025-06-10_14-06.png [ 43.95 KiB | Viewed 21280 times ]


Top
 Post subject: Re: AI vibe coded GEGL plugins
PostPosted: Thu Jun 12, 2025 6:10 am  (#33) 
Offline
GimpChat Member

Joined: Jun 22, 2019
Posts: 19
@contrast_:
Great! Many Thanks you for your quick response! Issue is fixed and presets are now safe again!

_________________
Gimp 3.0.8
Gimp 2.10.38 AppImage
OS: Linux Mint 21.3 Virginia based on Ubuntu 22.04


Top
 Post subject: Re: AI vibe coded GEGL plugins
PostPosted: Mon Jun 23, 2025 6:09 pm  (#34) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 2014
The latest version of all AI plugins is here. Includes glass shapes and a few minor updates to other plugins like celluar noise being in the menu

Image

Windows Binaries
https://github.com/LinuxBeaver/LinuxBea ... indows.zip

Linux Binaries
https://github.com/LinuxBeaver/LinuxBea ... _linux.zip

Source Code only
https://github.com/LinuxBeaver/LinuxBea ... e_code.zip

----

LOCATION TO PUT BINARIES

Windows

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

Linux

~/.local/share/gegl-0.4/plug-ins

Linux (Flatpak includes Chromebook)

~/.var/app/org.gimp.GIMP/data/gegl-0.4/plug-ins


Top
 Post subject: Re: AI vibe coded GEGL plugins
PostPosted: Sat Jul 05, 2025 10:30 pm  (#35) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 2014
AI plugins updated

What's new?

1. Most pattern AI Plugins have a checbox to hide the background color to blend them with whatever easier
For example a pattern of red sine waves has transparency so it can blend easier with whatever layer is below it.

Image

2. We have a new AI plugin made a few hours ago by both Grok and me named Rupees, Grok wrote the basics and I made it far more complex with nodes which renders a screen of beautiful colored gems. Make its color transparent for no background color if you want.

Image

3. Concentric Shapes has a point and click feature


Attachment:
vibe_coded_source_code.zip [611.15 KiB]
Downloaded 39 times


Attachment:
vibe_coded_windows.zip [2.03 MiB]
Downloaded 38 times


Attachment:
vibe_coded_linux.zip [559.28 KiB]
Downloaded 32 times


LOCATION TO PUT BINARIES


Windows

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

Linux

~/.local/share/gegl-0.4/plug-ins

Linux (Flatpak includes Chromebook)

~/.var/app/org.gimp.GIMP/data/gegl-0.4/plug-ins


Top
 Post subject: Re: AI vibe coded GEGL plugins
PostPosted: Sun Jul 13, 2025 5:26 am  (#36) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 2014
here is the source code to the latest AI plugins, and their dependencies all on the latest version. Also I have to include the source code with binaries because the GPL3 legally requires it.

Download here

Attachment:
vibe_coded_source_code.zip [723.58 KiB]
Downloaded 37 times


Attachment:
vibe_coded_linux.zip [987.36 KiB]
Downloaded 27 times


Attachment:
vibe_coded_windows.zip [3.37 MiB]
Downloaded 28 times


What's new?
There is a new blend mode section with many normal filters inside unique blend modes that Grok created. Try "Velvet Overlay" and "Radiant Color" they're my favorites


Location to put binaries

Windows

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

Linux

~/.local/share/gegl-0.4/plug-ins

Linux (Flatpak includes Chromebook)

~/.var/app/org.gimp.GIMP/data/gegl-0.4/plug-ins


Top
 Post subject: Re: AI vibe coded GEGL plugins
PostPosted: Sun Jul 13, 2025 2:07 pm  (#37) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 2014
Update AI plugins again to fix a 2.10.38 Windows crash with Glass shapes

Attachment:
vibe_coded_linux.zip [987.45 KiB]
Downloaded 24 times


Attachment:
vibe_coded_windows.zip [3.04 MiB]
Downloaded 46 times


Attachment:
vibe_coded_source_code.zip [723.58 KiB]
Downloaded 31 times


Top
 Post subject: Re: AI vibe coded GEGL plugins
PostPosted: Mon Sep 01, 2025 10:59 pm  (#38) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 2014
Latest version update to prevent problems in GIMP 3.14 dev build. We also have a new AI plugin named "recursive square patterns"


Works on GIMP 2.10, 3 and 3.14, but it is slow on 3.14

Image

Attachment:
vibe_coded_source_code.zip [766.94 KiB]
Downloaded 28 times


Attachment:
vibe_coded_linux.zip [1.42 MiB]
Downloaded 25 times


Attachment:
vibe_coded_windows.zip [3.3 MiB]
Downloaded 33 times


Top
 Post subject: Re: AI vibe coded GEGL plugins
PostPosted: Thu Sep 04, 2025 12:43 pm  (#39) 
Offline
GimpChat Member

Joined: Jun 22, 2019
Posts: 19
Thanks a bunch for the updates, contrast_! Especially for the new pattern generator 'Recursive Square Patterns' and also for the new blend modes. By the way, I think the menu registration for 'Recursive Square Patterns' is not complete.

I know the filters in this section were AI-assisted generated. But one must know what the prompt is and what to do with the resulting code to create a new inspiring and creative tool!

_________________
Gimp 3.0.8
Gimp 2.10.38 AppImage
OS: Linux Mint 21.3 Virginia based on Ubuntu 22.04


Top
 Post subject: Re: AI vibe coded GEGL plugins
PostPosted: Sat Sep 06, 2025 11:00 pm  (#40) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 2014
c-t-s wrote:
Thanks a bunch for the updates, contrast_! Especially for the new pattern generator 'Recursive Square Patterns' and also for the new blend modes. By the way, I think the menu registration for 'Recursive Square Patterns' is not complete.

I know the filters in this section were AI-assisted generated. But one must know what the prompt is and what to do with the resulting code to create a new inspiring and creative tool!


For my own interest I was updating it to add X and Y move sliders and a rotation slider and fixed this problem as well. Right now I'm too lazy to update everything so here is the individual download with menu registry and new X and Y and rotation sliders

Image

Attachment:
recursivesquares_source_code.zip [13.41 KiB]
Downloaded 17 times


Attachment:
recursivesquares_linux.zip [9.74 KiB]
Downloaded 20 times


Attachment:
recursivesquares_windows.zip [37.75 KiB]
Downloaded 28 times


Top
Post new topic Reply to topic  [ 40 posts ]  Go to page Previous  1, 2

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group