Page 1 of 1

Using montage to create sets of 45 images in a huge directory

Posted: 2015-08-18T21:52:34-07:00
by aurswim
Hi!
How can one use command-line montage to process a directory of 50000 files to create sets of, say, 800 images each?

Re: Using montage to create sets of 45 images in a huge directory

Posted: 2015-08-18T22:18:47-07:00
by fmw42
aurswim wrote:Hi!
How can one use command-line montage to process a directory of 50000 files to create sets of, say, 800 images each?
I am not sure I understand your question. Where does the 45 in your title come in? 800*45=36000 and not 50000.

Nevertheless, montage takes only the images it is fed and makes one large output including all those images. Seems to me that you would have to separate groups of input images ahead of time or via a script loop to process 800 image for each loop over montage.

You also will need lots of memory to hold even 800 images and respective output for those 800 images. You have not given us any indication of the size of your image, your IM version and your platform and the amount of memory you have.

If you do not have enough memory, you will need to use disk space. See http://www.imagemagick.org/Usage/files/#massive and viewtopic.php?f=4&t=26801 and http://www.imagemagick.org/script/resou ... nvironment