I started looking into Gimp AI plugins and they all seem somewhat non-trivial to install. But before I go down this rabbit hole, I was wondering, if any of these plugins are compatible with the flatpak version of Gimp? Does anyone have experience in this area?
Hi. You mentioned no plugin names or links so it is hard to respond.
It was meant more as general inquiry. There are a number of plugins around, but none of them mention anything about flatpak compatibility, so I’d be interested in any plugin that plays well with flatpak.
The mcp server-based one looks most appealing to me, since other applications could potentially benefit from that as well. But there are numerous slightly different Github pages with slightly different installation instructions, so it’s hard to get a coherent picture, and again, no mention about flatpak compatibility.
Here is a hint to use those AI plugin with GIMP flatpak version.
Now I have no time. I will explain later.
Hi @Photoniker,
In general, to operate Gimp AI plugins it is needed to install optional libraries. Let’s say you want to use such plug-ins and install the optional libraries to system installed Python using pip or something. However flatpak installed GIMP doesn’t use system installed Python interpreter. It seems that it uses the Python interpreter under /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/49 (or 48) /active/files/bin . So in general you can’t use these plugins even if you install related libraries.
However, there is a method to run the plug-ins with specified Python interpreter. It is to specify the interpreter using shebang description. I suppose that using this method, you may use these plug-ins with Flatpak installed GIMP.
Only these 3 plugins are guaranteed to work on Flatpak:
To work in Flatpak without trickers, the said “AI plugin” (again, does not hurt to tell its name or link it), needs to be packaged properly. It is quise easy actually. I can send the link to the GMIC example if you wants it
I’m familiar with the above three plugins and G’MIC actually ships with the 3.0.4 version of Gimp. I only had a cursory look at descriptions of how to package stuff for flatpak a while ago, but that didn’t look very straightforward (I’m far from being a Linux wizard - but I’d be interested in that link you mentioned).
Relatively simple plugins without complex depencies, however, run without much problem. Just yesterday, I installed the LMDT plugin by copying the py files into one of the plugin dirs, making the files executable, and restart Gimp.
So, my ideal scenario would be to have something like LM Studio or ComfyUI download, manage and run the LLMs and run independently from Gimp, and then have a “simple” plugin connect to that local server. But maybe that’s a dream for the distant future…