How to return G'MIC version in image?

A probably rather trivial question: how would I go about putting the G’MIC version into the output image array? So example for G’MIC 2.9.2, I want to have an output image of dimensions 3x1x1x1 (or similar) which contains “292”.
I know I can call “gmic e[] $_version” to output the version on the command lines/stdout, but not in the image layer.

Quick thought (Untested)

u {$_version} 1,1,1,1,${}

See here : G'MIC - GREYC's Magic for Image Computing: A Full-Featured Open-Source Framework for Image Processing - Substitution Rules

('$_version')

That works, thanks! :slight_smile:

1 Like