ImageCollage

ImageCollage[{image1,image2,}]
creates a collage of images imagei.

ImageCollage[{w1image1,w2image2,}]
creates a collage of images imagei based on their corresponding weights wi.

ImageCollage[image1w1,image2w2,]
also creates a collage of images imagei based on their corresponding weights wi.

ImageCollage[{w1,w2,}{image1,image2,}]
also creates a collage of images imagei based on their corresponding weights wi.

ImageCollage[{{image1,w1},{image2,w2},}]
also creates a collage of images imagei based on their corresponding weights wi.

ImageCollage[,fitting]
uses the fitting method to create the collage.

ImageCollage[,fitting,size]
creates a collage of the specified size.

Details and OptionsDetails and Options

  • ImageCollage creates a collage of a list of images and can be used to create a compact visualization of photographs, graphics, etc.
  • ImageCollage[w->{image1,image2,},] assumes the same weight w for all imagei.
  • Weights wi can be either of one of the following forms:
  • wfinal area proportional to w
    Scaled[s]final area proportional to s multiplied by the original area
  • Possible values for fitting include:
  • "Fill"fit the smaller dimension; crop the other if necessary
    "Fit"fit the whole image; keep the aspect ratio; pad if necessary
    "Stretch"stretch the image to fit by resampling
  • The following options can be specified:
  • BackgroundGrayLevel[0.2]background color
    ImagePaddingNonepadding size to use around each image
    ImageSizeAutomaticdisplay size of the collage
    MethodAutomaticmethod to use for packing images
    PaddingAutomaticpadding scheme to use around each image
    ResamplingAutomaticresampling method
  • Possible settings for ImagePadding are:
  • Noneno padding
    mthe same padding on all sides
    {m,n}m pixels on left and right, n pixels on bottom and top
    {{left,right},{bottom,top}}different padding on different sides
  • Method can take one of the following settings:
  • "Rows"arrange in horizontal layers
    "Columns"arrange in vertical layers
    "Grid"a regular grid of images
    "ClosestPacking"closest packing from the top left

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

Create an image collage from a list of images:

In[1]:=
Click for copyable input
Out[1]=

Create a collage from a weighted list of images:

In[1]:=
Click for copyable input
Out[1]=

Collage of flags of G7 countries, weighted by their population:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
Introduced in 2014
(10.0)
| Updated in 2015
(10.3)