>K M montage: ImageMagick - Image Processing and Display PackageJ R < W<8 
B

 
  &
>NAME+
>



Gmontage - create a composite image by combining several separate images
 


  &
>Contents+
>



Synopsis

Description

Examples

Options

X Resources

Environment

#Acknowledgement

Authors

Copyright


  &
>Synopsis+
>



umontage [ options ...] file [ [_options ...] file ...] output_file
 


  &
>Description+
>



Pmontage creates a composite image by combining several separateHimages. The images are tiled on the composite image with the name of the:image optionally appearing just below the individual tile.

GThe composite image is constructed in the following manner. First, eachFimage specified on the command line, except for the last, is scaled toGfit the maximum tile size. The maximum tile size by default is 120x120.QIt can be modified with the -geometry command line argument or X resource. See,Options3for more information on command line arguments. See:X(1) for more information on X resources.5Note that the maximum tile size need not be a square.

GNext the composite image is initialized with the color specified by the-backgroundJcommand line argument or X resource. The width and height of the compositeFimage is determined by the title specified, the maximum tile size, theKnumber of tiles per row, the tile border width and height, the image borderFwidth, and the label height. The number of tiles per row specifies howImany images are to appear in each row of the composite image. The defaultKis to have 5 tiles in each row and 4 tiles in each column of the composite.PA specific value is specified with -tile. The tile border widthNand height, and the image border width defaults to the value of the X resourceZ-borderwidth. It can be changed with the -borderwidth orP-geometry command line argument or X resource. The label heightRis determined by the font you specify with the -font command lineFargument or X resource. If you do not specify a font, a font is chosenKthat allows the name of the image to fit the maximum width of a tiled area.]The label colors is determined by the -background and -fillIcommand line argument or X resource. Note, that if the background and pen,colors are the same, labels will not appear.

MInitially, the composite image title is placed at the top if one is specifiedT(refer to -fill). Next, each image is set onto the composite image,Isurrounded by its border color, with its name centered just below it. TheHindividual images are left-justified within the width of the tiled area.FThe order of the images is the same as they appear on the command lineFunless the images have a scene keyword. If a scene number is specifiedHin each image, then the images are tiled onto the composite in the orderHof their scene number. Finally, the last argument on the command line isJthe name assigned to the composite image. By default, the image is writtenEin the MIFF format and can be viewed or printed with/display(1).
 


INote, that if the number of tiles exceeds the default number of 20 (5 perGrow, 4 per column), more than one composite image is created. To ensurePa single image is produced, use -tile to increase the number of3tiles to meet or exceed the number of input images.

IFinally, to create one or more empty spaces in the sequence of tiles, use*the "NULL:" image format.

:Note, a composite MIFF image displayed to an X server withdisplayHbehaves differently than other images. You can think of the composite asGa visual image directory. Choose a particular tile of the composite andZpress a button to display it. See display(1) and miff(5)



+Back to Contents  

  &
>Examples+
>



HTo create a montage of a cockatoo, a parrot, and a hummingbird and writeit to a file called birds, use:

A    montage cockatoo.miff parrot.miff hummingbird.miff birds.miff


HTo tile several bird images so that they are at most 256 pixels in widthFand 192 pixels in height, surrounded by a red border, and separated by#10 pixels of background color, use:

I    montage -geometry 256x192+10+10 -bordercolor red birds.* montage.miff


FTo create an unlabeled parrot image, 640 by 480 pixels, and surroundedby a border of black, use:

F    montage -geometry 640x480 -bordercolor black -label "" parrot.miff	bird.miff


?To create an image of an eagle with a textured background, use:

2    montage -texture bumps.jpg eagle.jpg eagle.png


ITo join several GIF images together without any extraneous graphics (e.g.8no label, no shadowing, no surrounding tile frame), use:

P    montage +frame +shadow +label -tile 5x1 -geometry 50x50+0+0 *.png joined.png



+Back to Contents  

  &
>Options+
>



JAny option you specify on the command line remains in effect for the groupJof images following it, until the group is terminated by the appearance ofVany option or -noop. For example, to make a montage of three images,Lthe first with 32 colors, the second with an unlimited number of colors, and#the third with only 16 colors, use:
 


I     montage -colors 32 cockatoo.1 -noop cockatoo.2 -colors 16 cockatoo.3cockatoos.miff


3For a more detailed description of each option, see7ImageMagick(1).
 
 !

.9 -adjoin+

join images into a single multi-image file
 !

.[ -authenticate <string>+

decrypt image with this password
 !

.V -background <color>+

the background color
 !

.` -blue-primary <x>,<y>+

blue chromaticity primary point
 !

.Y -blur <radius>x<sigma>+

blur the image with a Gaussian operator
 !

.X -bordercolor <color>+

the border color
 !

.( -borderwidth <geometry>+

the border width
 !

.P -cache <threshold>+

megabytes of memory available to the pixel cache
 !

. -chop <width>x<height>{+-}<x>{+-}<y>{%}+

remove pixels from the interior of an image
 !

.N -colors <value>+

preferred number of colors in the image
 !

.V -colorspace <value>+

the type of colorspace
 !

.Q -comment <string>+

annotate an image with a comment
 !

.S -compose <operator>+

the type of image composition
 !

.Q -compress <type>+

the type of image compression
 !

. -crop <width>x<height>{+-}<x>{+-}<y>{%}+

preferred size and location of the cropped image
 !

. -debug <events>+

enable debug printout
 !

._ -density <width>x<height>+

vertical and horizontal resolution in pixels of the image
 !

.L -depth <value>+

depth of the image
 !

.` -display <host:display[.screen]>+

specifies the X server to contact
 !

.Q -dispose <method>+

GIF disposal method
 !

.9 -dither+

apply Floyd/Steinberg error diffusion to the image
 !

.K -draw <string>+

annotate an image with one or more graphic primitives
 !

.Q -encoding <type>+

specify the text encoding
 !

.M -endian <type>+

specify endianness (MSB or LSB) of output image
 !

.J -fill <color>+

color to use when filling a graphic primitive
 !

.M -filter <type>+

use this type of filter when resizing an image
 !

.I -font <name>+

use this font when annotating the image with text
 !

. -frame <width>x<height>+<outer bevel width>+<inner bevel width>+

surround the image with an ornamental border
 !

.L -gamma <value>+

level of gamma correction
 !

. -geometry <width>x<height>{+-}<x>{+-}<y>{%}{@} {!}{<}{>}+

preferred size and location of the Image window.
 !

.O -gravity <type>+

direction primitive gravitates to when annotating the image.
 !

.b -green-primary <x>,<y>+

green chromaticity primary point
 !

. -help+

print usage instructions
 !

.S -interlace <type>+

the type of interlacing scheme
 !

.K -label <name>+

assign a label to an image
 !

.Y -limit <type> <value>+

Disk, Map, or Memory resource limit
 !

.7 -matte+

store matte channel if the image has one
 !

.V -mattecolor <color>+

specify the color to be used with the -frame option
 !

. -mode <value>+

mode of operation
 !

. -monochrome+

transform the image to black and white
 !

.5 -noop+

NOOP (no option)
 !

. -page <width>x<height>{+-}<x>{+-}<y>{%}{!}{<}{>}+

size and location of an image canvas
 !

.H -pen <color>+

specify the pen color for drawing operations
 !

.# -pointsize <value>+

pointsize of the PostScript, OPTION1, or TrueType font
 !

.P -quality <value>+

JPEG/MIFF/PNG compression level
 !

.^ -red-primary <x>,<y>+

red chromaticity primary point
 !

. -resize <width>x<height>{%}{@}{!}{<}{>}+

resize an image
 !

.x -rotate <degrees>{<}{>}+

apply Paeth image rotation to the image
 !

. -sampling-factor <horizontal_factor>x<vertical_factor>+

sampling factors used by JPEG or MPEG-2 encoder and YUV decoder/encoder.
 !

.T -scenes <value-value>+

range of image scene numbers to read
 !

./ -shadow <radius>x<sigma>+

shadow the montage
 !

._ -sharpen <radius>x<sigma>+

sharpen the image
 !

.p -size <width>x<height>{+offset}+

width and height of the image
 !

.N -stroke <color>+

color to use when stroking a graphic primitive
 !

.X -strokewidth <value>+

set the stroke width
 !

.$ -texture <filename>+

name of texture to tile onto the image background
 !

.! -tile <geometry>+

layout of images [montage]
 !

.M -title <string>+

assign title to displayed image [animate, display, montage]
 !

.X -transparent <color>+

make this color transparent within the image
 !

.T -treedepth <value>+

tree depth for the color reduction algorithm
 !

.5 -trim+

trim an image
 !

.I -type <type>+

the image type
 !

.; -verbose+

print detailed information about the image
 !

.; -version+

print ImageMagick version string
 !

.^ -white-point <x>,<y>+

chromaticity white point


3For a more detailed description of each option, see7ImageMagick(1).
 




+Back to Contents  

  &
>X Resources+
>



UMontage options can appear on the command line or in your X resourceFfile. Options on the command line supersede values specified in your XMresource file. See X(1) for more information on X resources.

RAll montage options have a corresponding X resource. In addition,montageuses the following X resources: !

.( background (class Background)+

background color


HSpecifies the preferred color to use for the composite image background.The default is #ccc. !

.* borderColor (class BorderColor)+

border color


HSpecifies the preferred color to use for the composite image border. Thedefault is #ccc. !

.* borderWidth (class BorderWidth)+

border width


HSpecifies the width in pixels of the composite image border. The defaultis 2. !

. font (class Font)+

font to use


KSpecifies the name of the preferred font to use when displaying text withinIthe composite image. The default is 9x15, fixed, or 5x8 determined by thecomposite image size. !

.( matteColor (class MatteColor)+

color of the frame


OSpecify the color of an image frame. A 3D effect is achieved by using highlightHand shadow colors derived from this color. The default value is #697B8F. !

. pen (class Pen)+

text color


ISpecifies the preferred color to use for text within the composite image.The default is black. !

. title (class Title)+

composite image title


JThis resource specifies the title to be placed at the top of the compositeFimage. The default is not to place a title at the top of the compositeimage.



+Back to Contents  

  &
>Environment+
>

 !

. DISPLAY+

To get the default host, display number, and screen.



+Back to Contents  

  &
>#Acknowledgements+
>



XThe MIT X Consortium for making network transparent graphics a reality.
 


VMichael Halle, Spatial Imaging Group at MIT, for the initial8implementation of Alan Paeth's image rotation algorithm.
 


UDavid Pensak, ImageMagick Studio, for providing a computing,environment that made this program possible.
 




+Back to Contents  

  &
>Authors+
>



 John Cristy,Omagick-users@imagemagick.org,ImageMagick Studio LLC,
Glenn Randers-Pehrson,=randeg@alum.rpi.edu,ImageMagick Studio LLC.

 




+Back to Contents  

  &
>Copyright+
>



6Copyright (C) 2002 ImageMagick Studio

MPermission is hereby granted, free of charge, to any person obtainingKa copy of this software and associated documentation files ("ImageMagick"),Hto deal in ImageMagick without restriction, including without limitationHthe rights to use, copy, modify, merge, publish, distribute, sublicense,Pand/or sell copies of ImageMagick, and to permit persons to whom the ImageMagickDis furnished to do so, subject to the following conditions:

OThe above copyright notice and this permission notice shall be included>in all copies or substantial portions of ImageMagick.

OThe software is provided "as is", without warranty of any kind, expressKor implied, including but not limited to the warranties of merchantability,Ffitness for a particular purpose and noninfringement.In no event shallGImageMagick Studio be liable for any claim, damages or other liability,Fwhether in an action of contract, tort or otherwise, arising from, outDof or in connection with ImageMagick or the use or other dealings inImageMagick.

;Except as contained in this notice, the name of theGImageMagick Studio LLC shall not be used in advertising or otherwise toLpromote the sale, use or other dealings in ImageMagick without prior written3authorization from the ImageMagick Studio.



+Back to Contents  


>

9Image manipulation software that works like magic.