Stauricus
December 1st, 2013, 09:33 PM
hello everybody
i'm trying to make a simple script to put many images into a single one.
i have about 1000 png files in a folder, named from 0 to 999 (0.png, 1.png, 2.png, [...]).
i want to put them all in a single image, with the 'montage' command from imagemagick. so, it seems that it would be like this:
montage 0.png 1.png 2.png 3.png [...] -background none -tile 100x -geometry +0+0 output.png
but i'd like to know if is there any better way than writing down the name of all numbers from 0 to 999. i haven't figured how to use a for loop to "create" all these arguments.
any ideas?
thanks in advance!
i'm trying to make a simple script to put many images into a single one.
i have about 1000 png files in a folder, named from 0 to 999 (0.png, 1.png, 2.png, [...]).
i want to put them all in a single image, with the 'montage' command from imagemagick. so, it seems that it would be like this:
montage 0.png 1.png 2.png 3.png [...] -background none -tile 100x -geometry +0+0 output.png
but i'd like to know if is there any better way than writing down the name of all numbers from 0 to 999. i haven't figured how to use a for loop to "create" all these arguments.
any ideas?
thanks in advance!