Release of G'MIC 3.1

@Mushy

Bonjour,
While waiting for Reptorian to offer a quick version here is a version that works with ‘gmic_3.1.0_pre220419’.
Use the user.gmic file of the archive.
Tested with GIMP 2.99.11 Win-64.

user.zip (9.0 KB)

Another error I have:

C:\Users\User\AppData\Roaming\gmic>gmic i sample_tiger.png
[gmic]-0./ Start G'MIC interpreter.
[gmic]-0./ Input file 'sample_tiger.png' at position 0 (1 image 750x500x1x3).
[gmic]-1./ Display image [0] = 'sample_tiger.png'.
[0] = 'sample_tiger.png':
  size = (750,500,1,3) [4394 Kio of float32s].
  data = (150,134,134,134,134,134,134,134,151,164,181,192,(...),58,58,56,54,65,56,65,65,70,65,56,56).
  min = 3, max = 248, mean = 98.0154, std = 48.22, coords_min = (305,74,0,2), coords_max = (707,471,0,0).
[gmic]-1./ *** Error *** Unable to display image 'sample_tiger.png'.
[gmic]-1./ End G'MIC interpreter.

It seem to unable to display any images.

I deleted update310.gmic, and then applied gmic up, then all my errors are fixed. Consider my problems solved.

By the way, I have bit of a disagreement with using => as opposed to :: with naming image. To me => is more suitable for store since the arrow seem to mean send to which is basically what store do.

Finally, a feature request:

I would like math evaluator to be able to perform operation on multiple array at once. See below to see the problem.

C:\Windows\System32>gmic echo {v=[5,4,2];v[0,2]*=2;v;}
[gmic]-0./ Start G'MIC interpreter.
[gmic]-0./ 5,4,2
[gmic]-0./ End G'MIC interpreter.

The output should be 10,8,2.

It’s not necessary though makes it easier to code in cmd.

Is there any problem with the gmic update file? I don’t see changes in my community file from several days ago reflected.

Additionally there is some error in the gmic status message:

[gmic]-0./ Start G’MIC interpreter.
gmic: GREYC’s Magic for Image Computing: command-line interface
Version ${strver 310,220418
(https://gmic.eu)

    Copyright (c) Since 2008, David Tschumperlé / GREYC / CNRS.
    (https://www.greyc.fr)

The strver bug has been fixed. Thanks.
Concerning the community file, no, there are no issues right now, AFAIK.

Looking at the last commits (Commits · dtschump/gmic-community · GitHub), I can see you haven’t push any commits for a long time.
Maybe you have some conflicts to fix locally before being able to push ?

There is (was) an update error that occurs with older Gimp plugins, is that the problem just fixed ?

Yes that should be fixed indeed, with latest prerelease binaries.

Don’t know what happens there. gmic-community cloned new and …

/Users/karo/sw/gmic-community $ git status
Auf Branch master
Ihr Branch ist auf demselben Stand wie ‘origin/master’.

Änderungen, die nicht zum Commit vorgemerkt sind:
(benutzen Sie “git add …”, um die Änderungen zum Commit vorzumerken)
(benutzen Sie “git restore …”, um die Änderungen im Arbeitsverzeichnis zu verwerfen)
geändert: include/karsten_rodenacker.gmic

keine Änderungen zum Commit vorgemerkt (benutzen Sie “git add” und/oder “git commit -a”)
/Users/karo/sw/gmic-community $ git help commit
/Users/karo/sw/gmic-community $ git commit -a
[master 9d3f141] Next trial to change something
1 file changed, 236 insertions(+), 246 deletions(-)

Still I don’t see any changes in the repository via a browser!

git push ?

Phhh, I am growing old! Thank you!

I want to let you know full-preview as option for gui filter will happen.

Yes, most probably, it is being implemented anyway. Waiting for this to be ready before releasing 3.1.0.

David_Tschumperle, could you add more shapes and parameters to Fractalize filter in next GMIC ?

I got a error now:

[gmic] *** Error in ./rep_stitch/*substitute/ *** Unknown command or filename '11--1'.

Relevant part of code:

+rep_find_nonduplicate_angles ${11--1} => rad_ang

Isn’t this suppose to work? I have ${m--n} everywhere in my .gmic file, so they did work before.

It is supposed to work if you have more than 10 parameters set when calling the command.

Oh. Is there like a way to set default arguments for ${11–1}, but if you only have $11, it only takes $11? I think I’ll try that in a minute.

Ah yes, got it:

if narg(${11--1})
 angs_args=${11--1}
else
 angs_args=0,60,120
fi

Sorry for the noise.

I you have exactly 11 parameters, then ${11--1} and $11 are equivalent.

Noted. One last thing, is there a way to make this more random? I want to set seed directly per different values, and return the first number of seed.

$ 16,16,1,1,srand(y*w+x);u(0,100);

It looks well, not random as of now:

image

  16,16,1,1,srand(y*w+x+100*u);u(0,100);

although setting a different random seed at each pixel is probably not a good idea, after all.

All in all, it’s a small matter - but maybe there are these sequences of mysterious numbers to be removed?