Montage (size)

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
yamane

Montage (size)

Post by yamane »

Hi,

I'm trying use "montage" to make a array:

Code: Select all

montage -size 400x400 null: *.JPG null: \
          -auto-orient  -thumbnail 200x200 \
          -bordercolor Lavender -background black +polaroid -resize 30% \
          -gravity center -background none -extent 80x80 \
          -background SkyBlue -geometry -10+2  -tile x1  polaroid_overlap.jpg
I find this tip here: http://www.imagemagick.org/Usage/montage/#overlap

But, the output file has only 360x84 pixels (the original files has 1000x750 pixels).

Somebody know how may I change the size of this array?

I already tried change "size 400x400" to "size 1000x1000", but nothing happening!

I would like this array with full size (1000x750 pixels each picture).

I'm using Debian Squeeze with Imagemagick 8:6.6.0.4-3 version.

Regards,
Renato S. Yamane
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Montage (size)

Post by anthony »

The -size setting is only used by some image creation and reading options. It is NOT use by montage.
You can not directly control montage output. You can control the size and the number of the tiles that go to make up the montage using -geometry and -tile options. The gap setting of the -geometry argument is used to set a border type spacing around each tile. -frame and -shadow also add extra spacing around each tile.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Montage (size)

Post by anthony »

The nul: image tag is only used to add extra tiles to an image otherwise the miss use of geometry to generate a negative spacing also will clip the edges of the line of images. Just as a positive space adds extra space to each tile in the form of a border, negative spacing removed (shrinks) each tile.

The tile handling is only used for size and offset calculations when generate a canvas onto which the individual images are overlaid. This is the only reason the overlapping image example actually even works. It is in some ways much like how the more DIY "Programmed Positioning of Images Example" works...
http://www.imagemagick.org/Usage/layers/#example

However not only are images processed and sized before overlaying, but the canvas size is also pre-calculated from the images, where as the above DIY example uses the newer '-layers merge" operator to do that canvas size calculation, and thus prevent any clipping of the images.

It would only take a little work to convert the above example into a more exact "montage" equivalent that does not 'clip' edges.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply