Page 1 of 1

Adjoin a range of PNG files

Posted: 2017-02-03T09:01:33-07:00
by clipper
I'm new to IM and can see it offers some amazing features.
I have a very basic question which I hope someone will answer.
I have 60 PNG files, numbered 001.png to 060.png.
I want to build a single PNG file that has 5 rows of 12 png files. i.e. 001.png to 012.png on the top row , 013.png to 024.png on 2nd row and so on until the 5th row which would have 049.png to 060.png.
I've used adjoin on the command line, but I get the same 12 png files on each row.
Thanks in advance.

Re: Adjoin a range of PNG files

Posted: 2017-02-03T09:29:04-07:00
by snibgo

Code: Select all

montage *.png -tile 12x5 outdir/out.png
For the many options, see http://www.imagemagick.org/Usage/montage/

Re: Adjoin a range of PNG files

Posted: 2017-02-03T09:52:04-07:00
by clipper
Thanks snibgo

I've tried your suggestion. I should have mentioned that the images are landscape (141x100). The output png file has all the 60 files on the correct rows, but each image is square. I will look at the geometry setting as I assume it is something to do with that. Also, I want to put a thin border around each of the 60 images.