ImageMagick is to have the ability to batch processing, such as the following command:
montage “*.jpg” -geometry 24×24+2+2 thumbnail.png
It is the current directory and all the jpg image, reduced to the size of 24 × 24, and arranged to image an upswing.
In addition to this way of wildcards above, another approach is to use batch @, such as:
dir /B *.png > filelist.txt
montage @filelist.txt -geometry 24×24+2+2 thumbnail.png
You can also achieve these results. It also means we can use a list of file names to complete the batch job.
More advanced way is to use @ - , @ - receiving over the parameters from the channel, as follows:
echo ‘a.jpg b.jpg c.jpg’ | montage @- -geometry 24×24+2+2 thumbnail.png
But it looks like above is only valid under linux console, under dos I could experiment was a success.
Reproduced in: https: //my.oschina.net/dake/blog/196677