I need a bash script which will run through a folder of 100s of jpegs and create montages of every 30 images and output the montages with distinct file names.
The G'Mic command to create a montage from a folder of images*:
gmic *.jpg -gimp_montage 4,\""V(H(0,1),H(2,V(3,4)))"\",1,1.0,0,5,0,0,0,255,0,0,0,0 -o output.jpg
*NOTE: Another zero may have to be added to the following part of the command to get it to work, e.g.:
255,0,0,0,0,0 -o output.jpg