Adjoin a range of PNG files

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
clipper
Posts: 2
Joined: 2017-02-03T08:45:29-07:00
Authentication code: 1151

Adjoin a range of PNG files

Post 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.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Adjoin a range of PNG files

Post by snibgo »

Code: Select all

montage *.png -tile 12x5 outdir/out.png
For the many options, see http://www.imagemagick.org/Usage/montage/
snibgo's IM pages: im.snibgo.com
clipper
Posts: 2
Joined: 2017-02-03T08:45:29-07:00
Authentication code: 1151

Re: Adjoin a range of PNG files

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