Script – How can I take hundreds of smaller images and create one big tiled image?

I have 251 images that are 128×128 in size; I need to create one big image that includes them all tiled together.

The image will be 32128×32128 in size if all goes well (Paint.NET says it will be 3.8GB in size, fun times)

I need to do this systematically, with a tool or a script since I might have to do this a few times – it’s very tiresome to do by hand. I have programming skills, so if the solution requires that, then no problem.

If your idea does not work for such a big image but would work with a part of the images, then I’d like to hear about it anyway.

Solution:

Try ImageMagick, a command-line image editor. Its montage command can help you tile your images together. For more info about montage:

Here’s an example that tiles 100 PNG files in a folder together (10 images down, 10 images across).

montage *.png -geometry +0+0 -tile 10x10 all.png

where

all.png is the output file name

-geometry +horizontalSpacing+verticalSpacing
-tile COLSxROWS  

Result:enter image description here