Using montage

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
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Using montage

Post by anthony »

The mathematics of montage is straight forward...

Basically the montage width should be.... (geometry_size + 2*frame_size) * images_per_row
+ geometry_offset * (images_per_row + 1)

The height is similar but with extra spacing for labels and the optional montage title. Shadow does not have any effect in the current versions of montage though years ago it did.

There has been a proposal for some method by which a final montage size can also be specified.
See http://www.imagemagick.org/Usage/bugs/f ... ntage_size
The other parameters (not defined) would then be adjusted accordingly. However figuring out how the various options should interact when things are not defined, is a complex issue as it has not been done with a specified final output size in mind.

If someone would like to re-program montage (it is quite a straight forward IM application program) to do this, I am sure users would love you, and worship you for your great programming skills. :wink:
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Using montage

Post by Bonzo »

It could be done if you are using php. All the calculations etc. would be done with php and you then put the results into a php code. I have a couple of examples showing you the sort of thing that can be done on my site; look at this page: http://www.rubblewebs.co.uk/imagemagick/other.php
Post Reply