Hi,
In the past I’ve used DOS BAT files to invoke G’MIC commands and specified the image filename as a part of the command line call to the BAT file. I am wondering if the same can be done with G’MIC scripts? Following is an example, using BAT parameter standards - which don’t work here.
In this case my command line would be:
gmic testing.gmic doit inputfilename jpeg
# testing.gmic test script
#-------------------------------------------------
doit :
echo "Starting"
-input %1.%2
split c
output[0] %1xchan0.jpg
output[1] %1xchan1.jpg
output[2] %1xchan2.jpg
echo "Done"
When I run this I get the following error :
[gmic] *** Error in ./doit/ *** Command ‘input’: Unknown filename ‘%1.%2’.
which I rather expected since there’s no reason to think that a G’MIC script would work the same way as a DOS BAT script. In fact, can parameters even be passed in to G’MIC scripts?
Thanks.