Select multiple images

http://gmic.eu/tutorial/_input.shtml says how to build internal list of images for processing. But I can not find how can I load all images that are named like cost01.png, cost02.png, … without long command line construction.

I think that page should contain info how to select multiple images (imagine there is hundred) from command line without additional external scripting.

If you are using the Linux shell, this is not really a problem, as

$ gmic cost*.png

will do what you want (because the shell expand the command line above to gmic cost01.png cost02.png ...). On Windows, the shell sucks :stuck_out_tongue: , so you need to probably to use the command -input_glob` instead :

gmic.exe -input_glob cost*.png

(shortcut for -input_glob is -ig).

Thanks. The documentation at http://gmic.eu/reference.shtml says that -ig is for -input_globbing, which is probably an error. Also I can not give a link to -ig exactly, because there is anchor generated. Is the reference generated at all?

Another question - does -input_glob sorts found images? Is the sort logical or bytewise, e.g. image2.png < image10.png

The typo in the reference doc has been corrected. Thanks for noticing it.

That’s a good question. It uses a call to a system function that returns the list of files in a certain order, but which one, that is probably platform-dependent :slight_smile: I’ve no idea.