Supercomputing Institute Technical User Support

Creating a Tiling of Images

The Imagemagick package provides many utilities to display and manipulate images. The montage program creates tilings of several images. Montage can use several image formats. If your images were produced on an SGI workstation and have the extension rgb, be sure to read about SGI image formats. If

In the following examples, I used 6 images, m1.xwd, m2.xwd, m3.xwd, m4.xwd, m5.xwd, and m6.xwd. Here are several commands and the results.

Image Formats

The Imagemagick routines handle an amazing number of image formats. The file name extension names the image format. You may combine, using montage, many files of different image formats into one file.

In the above examples, all 6 input files had the extension xwd, which is the X window dump format. The output file had the extension gif, which is Compuserve's graphics image format. Again, the formats of the input files may all be different.

The following is from the man page for the convert program that is part of Imagemagick and shows the image formats that montage can handle.

          AVS   AVS X image file.
          BMP   Microsoft Windows bitmap image file.
          CMYK  Raw cyan, magenta, yellow, and black bytes.
          EPS   Adobe Encapsulated PostScript file.
          EPSF  Adobe Encapsulated PostScript file.
          EPSI  Adobe Encapsulated PostScript Interchange format.
          FAX   Group 3.
          FITS  Flexible Image Transport System.
          GIF   Compuserve Graphics image file.
          GIF87 Compuserve Graphics image file (version 87a).
          GRAY  Raw gray bytes.
          HDF   Hierarchical Data Format.
          HISTOGRAM
          JBIG  Joint Bi-level Image experts Group file interchange format.
          JPEG  Joint Photographic Experts Group file interchange format.
          MAP   Red, green, and blue colormap bytes followed by the
          MATTE Raw matte bytes.
          MIFF  Magick image file format.
          MTV   MTV Raytracing image format.
          NULL  NULL image.
          PCD   Photo CD.
          PCX   ZSoft IBM PC Paintbrush file.
          PDF   Portable Document Format.
          PICT  Apple Macintosh QuickDraw/PICT file.
          PNG   Portable Network Graphics.
          PNM   Portable bitmap.
          PS    Adobe PostScript file.
          PS2   Adobe Level II PostScript file.
          RAD   Radiance image format.
          RGB   Raw red, green, and blue bytes.
          RGBA  Raw red, green, blue and matte bytes.
          RLE   Utah Run length encoded image file; read only.
          SGI   Irix RGB image file.
          SUN   SUN Rasterfile.
          TEXT  raw text file; read only.
          TGA   Truevision Targa image file.
          TIFF  Tagged Image File Format.
          TILE  tile image with a texture.
          VICAR read only.
          VID   Visual Image Directory.
          X     select image from X server screen.
          XC    constant image of X server color.  Specify the desired
                color as the filename.
          XBM   X11 bitmap file.
          XPM   X11 pixmap file.
          XWD   X Window System window dump image file.
          YUV   CCIR 601 4:1:1 file.
          YUV3  CCIR-601 4:1:1 files.

SGI Image Formats

Unfortunately, SGI and Imagemagick use the extension rgb to indicate different formats. Whenever you use an rgb file produced by an SGI workstation in an Imagemagick routine, you must proceed it by sgi:

For example, the command

montage -tile 2x3 sgi:m1.rgb sgi:m2.rgb sgi:m3 sgi:m4.rgb sgi:m6.rgb sgi:m6.rgb image.jpg

Creates a tiling of 6 rgb images produced by an SGI workstation and outputs one image in jpeg format.

To make it easier, you may want to rename your SGI produced files to have the extension sgi. In this case, the above command could be

montage -tile 2x3 m*.sgi image.jpg

Further Assistance

For further assistance, contact Barry Schaudt (schaudt@msi.umn.edu).


This information is available in alternative formats upon request by individuals with disabilities. Please send email to alt-format@msi.umn.edu or call 612-624-0528.

HOME | QUESTIONS | FEEDBACK
Events | Links | People | Programs | Publications | Support | Welcome
 


URL: http://www.msi.umn.edu /user_support/scivis/montage/tiling.html
This page last modified on Wednesday, 23-Apr-2008 11:15:51 CDT  
Please direct questions or problems to help@msi.umn.edu  
Website related questions or problems should be directed to webmaster@msi.umn.edu
The Supercomputing Institute does not collect personal information on visitors to our website. For the University of Minnesota policy, see www.privacy.umn.edu.