genart.dev
CLI

genart montage

Compose a grid of images into a montage

Compose multiple rendered images into a single grid montage. Useful for visualizing seed ranges, parameter sweeps, or comparing variations side by side.

Usage

genart montage <source> [options]

Arguments

ArgumentRequiredDescription
<source>YesDirectory of images or glob pattern

Options

FlagTypeDefaultDescription
--columnsnumberNumber of columns in the grid
--rowsnumberNumber of rows in the grid
--tile-sizeWxHSize of each tile (e.g. 200x200)
--gappx2Gap between tiles in pixels
--paddingpx0Padding around the entire montage
--backgroundhex#0A0A0ABackground color
--labelstringLabel each tile: seed, params, filename, index, or none
--label-colorhexLabel text color
--label-font-sizenumberLabel font size in pixels
--sortstringSort tiles by seed, name, or param:<key>
-o, --outputpathmontage.pngOutput file path

Examples

Create a montage from a directory of renders:

genart montage renders/

Specify grid dimensions and tile size:

genart montage renders/ --columns 10 --rows 5 --tile-size 200x200

Add labels showing the seed for each tile:

genart montage renders/ --label seed --label-color "#FFFFFF"

Sort by a parameter value:

genart montage renders/ --sort "param:density" --label params

Custom styling with padding and background:

genart montage renders/ \
  --columns 8 \
  --gap 4 \
  --padding 16 \
  --background "#1A1A2E" \
  -o gallery.png

Combine batch and montage in a pipeline:

genart batch my-sketch.genart --seeds 1-64 -o renders/
genart montage renders/ --columns 8 --label seed -o overview.png