I made a turorial for this in 2020.Simplified the steps are to locate the G'MIC command you want to use, insert it into a batch script, open a terminal in the folder where the images are and run the batch scrip. I use it on 1,000 or more frames generated by 3d fractal software.
Look for the G'MIC command that looks like this:
[gmic_gimp_qt]./apply/ v 3 gcd_anti_alias 60,0.3,50,"0"
This is the batch script:
#!/bin/bash
mkdir ./done
for i in *png
do
gmic $i v 3 gcd_anti_alias 60,0.3,50,0 -o ./done/$i
done
This script is an insight into many computer processes.
It invokes a shell (bourne again shell in this case).
It applies the command to all PNGs or JPGs with the * wildcard.
It applies the G'MIC command sequentially so I get the numbering right first. (by opening them in Gimp and exporting with ofnuts export all layers)
It makes a new directory in the directory called 'done' where your images are.
The script like all Gimp scripts has to be made executable and in Unix it's started like this:
./GMIC_AntialiasDefaultSettingsV3.sh
'./' means the script is in the same folder as the images.
I use this method on videos
like this one.