Quick question regarding G'mic...

I have downloaded the latest gimp-gmic dev and have placed it in an appropriate folder and pointed to it in the GIMP3 folder settings and highlighted the link.

Unfortunately, G’mic doesn’t appear under Gimp Filters.

Does G’mic actually work with GIMP 3.0(RC1)? If so, how can a Linux user make this plugin work?

Thanks in advance.

It doesn’t really have the concept of color profile, though I do wish G’MIC plugin utilize srgb/rgb as additional option. Whatever value exported is what you get, and if you can save the profile with 3rd party plugin, it’ll be imported the same way. Which makes me wonder.

@David_Tschumperle could it be possible to extend G’MIC a little bit as to preserve or to assign color profile? Not necessarily to change visuals and so. Just metadata.

gmic probably needs to be updated to the gimp 3 API changes

gmic probably needs to be updated to the gimp 3 API changes

I think so, I am no programmer but I do dabble. I thought I had the Gimp 3.0 plugin but no. Lots of deprecated warnings then.

/usr/bin/ld: .obj/host_gimp.o: undefined reference to symbol ‘g_list_append’
/usr/bin/ld: /lib/x86_64-linux-gnu/libglib-2.0.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:539: gmic_gimp_qt] Error 1

kubuntu 24.04 / Gimp 3.0 (PPA)

Right now, your only friend is @samj :slight_smile:

samj Créations: G'MIC 3.5.0 pre GMIC-QT6 , GMIC-GIMP-QT6-3.0.0-RC1 Win 64

A friend for Win64 users ?

Right now, your only friend is @samj

Yes, I used the modified host_gimp.cpp from there, and that got me a long way.
Truthfully, I am still very content using Gimp 2.10

You can try to compile under Linux with the sources from this archive:
https://github.com/sylale/gmic-qt/releases/download/gmic_3.5.0/gmic_3.5.0-pre_Gimp-3.0.0-RC1-Win64.7z

unzip gmic_3.5.0-pre_Gimp-3.0.0-RC1-Win64.7z
unzip /gmic_3.5.0-pre_Gimp-3.0.0-RC1-Win64/sources/gmic.7z
go to /gmic_3.5.0-pre_Gimp-3.0.0-RC1-Win64/sources/gmic/src

make gimp && make gmic_qt

The Makefile is modified for QT6

I haven’t finished setting up a virtual machine under Linux XUbuntu to test these sources.


Quel est ton problème alex666?

1 Like

Thanks, I think I’ll just wait until the stable G’mic plug for GIMP 3.0 comes out. Compiling isn’t my strength. It is enough for me to know that G’mic does not (yet) work with GIMP 3.0 (RC1). Much appreciated though.

Your code, kubuntu 24.04 (VM), Gimp 3.0 RC1 (from PPA)
I had to go back to QT5 although QT6 is also installed. (kubuntu just too dependant on QT5)

It compiled with lots of this type warning

src/Host/Gimp/host_gimp.cpp: In function ‘GList gmic_qt_query(GimpPlugIn*)’:*
src/Host/Gimp/host_gimp.cpp:1053:43: warning: unused parameter ‘plug_in’ [-Wunused-parameter]

  • 1053 | static GList * gmic_qt_query(GimpPlugIn * plug_in)*

but it got there, so far no exhaustive test…but…

Thank you very much.

1 Like

@rich2005

Bonjour,

Thanks for testing the build on Linux.

Me too have warnings when compiling the plugin.

Perhaps you could make this binary available in an Ubuntu-appropriate package :smile:

Thanks again.

:o)

Well…unlikely to work on other than a ubuntu 24.04 (noble) or spin-off. It is the static plugin, single executable, and zipped it here. Remember, it does need a QT5 installation.

As well as the Gimp 3.0 RC1 from PPA gimp 3.0 : Mateusz Łukasik or ;

I normally use a Gimp 3.0 RC1 appimage (not the PPA) and it works there, but usual guarantee, there is none.

2 Likes

@rich2005

Thank you your compilation works very well :smiley:

test_gmic350pre_ubuntu

As I just see the “3D Blocks” plugin. It would be cool if it would be possible to set the hight of the blocks from an other layer then the color like it is done in the “3D Elevation” plugin:

1 Like

Bonjour,

Compilation tests continue with the use of CLANG WIN 64 (gimp.org uses this compiler).

The performances are there with CLANG:
For the same filter (very slow), 9 seconds for CLANG vs 52 seconds for GCC to obtain the same result!

Here is the link to download this new version contained in the archive gmic_3.5.0-pre_Gimp-3.0.0-RC1-CLANG-Win64.7z

https://github.com/sylale/gmic-qt/releases/download/gmic_3.5.0/gmic_3.5.0-pre_Gimp-3.0.0-RC1-CLANG-Win64.7z

1 Like

That’s interesting.
What filter is it ? Could you try with ‘Denoise [CNN]’ and ‘Upscale [CNN2X]’ ?

Bonjour,
Here are the test results: on the left GCC, on the right CLANG.
The difference with Upscale [CNN2X] is not significant.
I can’t find the Denoise filter [CNN].

Tried here on my Ubuntu 22.10, and the use of clang is not a game changer (but installed package is clang-14).
I’ve seen that clang-19 is available on MSYS, so I’ll test using it to create the Windows binaries, and see if that is worth to make the change from gcc to clang.
Thanks for the suggestion!

Just a quick test after being able to compile gmic (command line tool) on Windows.
Old version :

$ gmic sp colorful tic denoise_cnn , toc q
[gmic]-0./ Start G'MIC interpreter.
[gmic]-1./ Input sample image 'colorful' (1 image 800x800x1x3).
[gmic]-1./ Initialize timer.
[gmic]-1./ Denoise image [0] using a convolutional neural network (for soft-noise), with patch size 64.
[gmic]-1./ Elapsed time: 18.03 s.
[gmic]-1./ Quit G'MIC interpreter.

vs the one compiled with clang (v.19):

$ ./gmic sp colorful tic denoise_cnn , toc q
[gmic]./ Start G'MIC interpreter (v.3.5.0).
[gmic]./ Input sample image 'colorful' (1 image 800x800x1x3).
[gmic]./ Initialize timer.
[gmic]./ Denoise image [0] using a convolutional neural network (for soft-noise), with patch size 64.
[gmic]./ Elapsed time: 10.827 s.
[gmic]./ Quit G'MIC interpreter.

So, yes this makes a big difference for me (-42% in computation time).
I’ll try compiling the plug-in and eventually build new pre-release packages for 3.5.0.

2 Likes

Bonjour,

It’s great to be able to gain performance simply by using another compiler :partying_face:

I too had to make adjustments to use Clang. The optimization options are very slightly different from GCC.

I looked on the XUbuntu 24.04 VM and it has Clang 18.

:o)

1 Like