Release of G'MIC 3.0

I tried it on Version 2.9.7 pre just now. Doesn’t work for me either. The command itself works though.

#@cli compose_channels1
#@cli : Compose all channels of each selected image, using specified arithmetic operator (+,-,or,min,...).
#@cli : Default value: '1=+'.
#@cli : $ image.jpg +compose_channels and
#@cli : $$
compose_channels1 : skip ${1="+"}
  e[^-1] "Compose all channels of image$?, with operator '$1'."
  repeat $! l[$>]
    sh 0
    repeat s#-2-1 sh.. {$>+1} l[-2,-1] $1 endl done
    rm. r 100%,100%,100%,1,-1
  endl done

I’ll check that on the Windows VM.

Minor bug in update297.gmic. Filename doesn’t match.

#@gmic
#
#  File         : update290.gmic
#                 ( G'MIC command file )

Oh, I reproduced the error Access is denied. I think it occurs after an update.

gmic h compose_channels
Access is denied.

  compose_channels:

    Compose all channels of each selected image, using specified arithmetic
    operator (+,-,or,min,...).

    Default value: '1=+'.

    Example: [#1] image.jpg +compose_channels and

    Tutorial: https://gmic.eu/tutorial/_compose_channels.shtml

Now it won’t go away, even after reboots.

It seems to be related to BOM (Byte-Order-Mask), I’m working on a fix.

EDIT: It should be fixed now.

I am still getting the error after the switch and can confirm that it happens after an update, if not for other forgotten reasons. And to place it all in one post, it triggers a report that MS tries to send home, which is caught by my firewall.

image

1 Like

This works not sufficiently for the example region “#@cli : $”:

Can confirm though I haven’t switched.

C:\Windows\System32>gmic h pal
Access is denied.

  pal:
      0<="palette_id"<=223

As for the second problem (with help), my current workaround is to modify update297.gmic instead of relying on user.gmic. Not as proper as I would like.

Could you try to run gmic in debug mode and copy paste the log somewhere?
It may be related to the new ‘delete’ command used to remove temp files.
We have to find what is going on. I don’t have this on my W7.

On my win 10 I get:

C:\Users\karo>gmic h region_feature
Der Befehl “tput” ist entweder falsch geschrieben oder
konnte nicht gefunden werden.

region_feature:
[labelimage],_region_label(1),_feature({wh})

Return feature for a specified region in status. Selected image is ...

Is it possible to get the output with the debug flag activated ? I cannot guess where this happens otherwise!

C:\Users\karo>gmic debug h delete > help_debug.txt
Der Befehl “tput” ist entweder falsch geschrieben oder
konnte nicht gefunden werden.

help_debug.txt (1.4 MB)

2 Likes

Very good thank you @KaRo!
I’ve pushed a new update that should fix that issue.

2 Likes

In deed! And the example section (#@cli : $ ) in help is improved either.

Thanks

Thanks! Both issues have been resolved.

2 Likes

Without thinking much about it, I used the command rgb2lms. It didn’t have a help entry, so I tried looking for its source on GitHub but to no avail. I know I can use e $$rgb2lms to print the source but it would be great to know where it is from. Just curious.

  • 2021/04/07: Release of version 2.9.7.
6 Likes

Once I saw that your update would work in 2.10.24, I installed the updated G’MIC to make sure in worked in the older GIMP before upgrading. GIMP 2.10.24 and G’MIC 2.9.7 work well together, David. Thanks. :slight_smile:

1 Like

Some problems with writing webp file format. Don’t know if gmic (2.9.8, MacOS), convert or gm are responsible. At least gmic shows 4 channels with spurious pixels in the “transparent” region, rsp. where channel 4 is zero.

I’m not able to load example images, heic (rgba input) and webp (rgba output) are not accepted for upload to pixels.us!

I did
gmic example.heic o {b}.webp
and
gmic example.webp

It works for me:

$ gmic rgba.webp o foo.webp
[gmic]-0./ Start G'MIC interpreter.
[gmic]-0./ Input file 'rgba.webp' at position 0 (1 image 512x512x1x4).
[gmic]-1./ Output image [0] as webp file 'foo.webp' (1 image 512x512x1x4).
[gmic]-1./ End G'MIC interpreter.
 
$ gmic foo.webp
[gmic]-0./ Start G'MIC interpreter.
[gmic]-0./ Input file 'foo.webp' at position 0 (1 image 512x512x1x4).
[gmic]-1./ Display image [0] = 'foo.webp'.
[0] = 'foo.webp':
  size = (512,512,1,4) [4096 Kio of floats].
  data = (0,0,0,0,0,0,0,0,0,0,0,0,(...),0,0,0,0,0,0,0,0,0,0,0,0).
  min = 0, max = 255, mean = 44.2871, std = 85.1739, coords_min = (0,0,0,0), coords_max = (335,29,0,0).
[gmic]-1./ End G'MIC interpreter.

with original webp image :
rgba