Gluing tiles together using imagemagick's montage command

Posted by AP257 on Stack Overflow See other posts from Stack Overflow or by AP257
Published on 2010-05-17T22:25:47Z Indexed on 2010/05/17 22:30 UTC
Read the original article Hit count: 246

Filed under:
|
|

This seems like it might be a reasonably common question, so I'm going to ask it using as many keywords as I can think of!

I have a bunch of (well, nine) tile jpegs, with standard tile filenames. Each jpeg is 220x175 pixels:

(top row)
tile_1_0_0.jpg
tile_1_1_0.jpg
tile_1_2_0.jpg
(middle row)
tile_1_0_1.jpg
tile_1_1_1.jpg
tile_1_2_1.jpg
(bottom row)
tile_1_0_2.jpg
tile_1_1_2.jpg
tile_1_2_2.jpg

How can I use imagemagick/montage to 'glue' or join them all together to make a single, coherent image? I don't want to resize them at all, so I guess the final image should be 660x525.

That would be montage with no framing, shadowing, bordering, etc - just the nine original images, glued together to make a single jpeg.

I know it should be something along these lines, but I'm struggling with getting the order and sizing right:

montage +frame +shadow +label -tile 3x3 -geometry <options> *.jpg joined.jpg

© Stack Overflow or respective owner

Related posts about imagemagick

Related posts about tiles