Release of G'MIC 3.1

In gmic-3.1.0_pre-qt-win64
from https://gmic.eu/files/prerelease/gmic_qt_win64.zip
still can’t load jpg
I come from: On the road to 3.1 - #139 by arturoisilvia

This was due to some .dll missing.
Could you please try again with the new binary version posted today ?

1 Like

Now it works perfectly. Finally there is jpg. Thank you very much.

1 Like

Hi David, just tried to write a cimgz image of type auto:

[gmic]-1./ Output image [0] as cimgz file ‘/tmp/test.cimgz’, with pixel type ‘auto’.
[gmic]-1./ *** Error *** Command ‘output’: File ‘/tmp/test.cimgz’, invalid specified pixel type ‘bool’.

The same happens with file type cimg and tiff using bool as data type.

I confirm the bug. Working on a fix.

Well no, not a bug.
The bool datatype should be used only for loading/saving raws (bitwise).
For other formats, use new uint8 instead, because bool is actually architecture-dependent (can be 1 byte or 4 bytes, on MacOS for instance).
I’ve then disabled saving .cimgz and .gmz files with the bool datatype, to ensure portability of saved files between multiple OS and architectures.

Ok, I have tried uint8 too. It works so far. Maybe tiff could have bool data type.
Thank you

Still the same problem with the ‘Map Projection’ plugin - I know it’s a third-party plugin, however I’m hoping someone could suggest some edit of the code(s) that would make them work again (code is here: G'mic projection scripts - 2021-01-13 - Pastebin.com) - the EQUIRECTANGULAR ROTATION filter (‘rotate_equirectangular_map’) works fine though it’s just the other thirteen filters in that set that go wrong (in the GIMP GMIC & Windows CLI latest devs)
Thanks for everything!

@Mushy If you’re willing to edit those code, I could help. For one thing, it needs const in math evaulators. Another thing is that it needs removal of useless codes like Ff_zoom. Then removal of useless syntax that can be better off with simplified form. It’s quite a lot of work.

It’ll take a month for me to do a refactor of those code. Maybe I can make Python script that will reduce it to two weeks.


@David_Tschumperle

Well then…

C:\Windows\System32>gmic up
[gmic]-0./ Start G'MIC interpreter.
[gmic]-0./ Update command definition file 'C:\Users\User\AppData\Roaming\gmic\update310.gmic' from the G'MIC server.
[gmic] *** Error in ./up/ *** Command 'update' : Unreachable update file.

@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.