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

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
aurswim
Posts: 1
Joined: 2015-08-18T21:46:36-07:00
Authentication code: 1151

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

Post 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?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

Post 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
Post Reply