montage images

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
amsterdamned

montage images

Post by amsterdamned »

Hi,

I've been trying and reading the documentation for several hours, can't figure this out. Please forgive this (hopefully) easy question :shock:

When i have 16 images, montage will automaticly create a square, so a 4-rows X 4-columns image.
for example: montage -geometry +0+0 %d.jpg[1-16] done.jpg

However, this is not what i want.
1. How do i create my own x,y coord. image? For example a 8-columns X 2-rows image.

I've tried size, tile, resize, crop, different geometry (but the +0+0 will keep the real size of the image).

Using absolute pixels size or row/columns don't really mather, any help would be appreciated!
Thanks a bunch.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: montage images

Post by fmw42 »

should work like the following to make two rows of eight (see -tile control in montage)

montage %d.jpg[1-16] -tile 8x2 -geometry +0+0 done.jpg

see http://www.imagemagick.org/Usage/montage/
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: montage images

Post by anthony »

More specifically
IM Examples, Montage, Tile Layout Controls
http://www.imagemagick.org/Usage/montage/#tile

Note however that there is no way in "montage" of doing spanning rows or columns.
That is you can not make one image span two neighbouring cells.
For that you will need to DIY.

WARNING: -geometry +0+0 will put montage in special 'concatenate' mode which is a separate and less developed method of handling image arrays. This works well if the images are all the same size, but fails otherwise. To prevent using this special mode, while still allowing zero gaps use a non-zero geometry. See Zero Geometry, caution required
http://www.imagemagick.org/Usage/montage/#zero_geometry
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply