Try Pro FREE for 2 weeksGet Started

layer-compose — Traditional AI Model

Layer Compose flattens a stack of RGBA layers, background first, into one image by alpha compositing. It is the closing half of a layered edit, and every layer has to share the same dimensions. CPU.

Details

  • CategoryTraditional
  • Year-1
  • License

Inputs & Outputs

LayersInputlist:image

Layer stack to composite (background first)

ImageOutputimage

Alpha-composited image

Parameters

fitstringdefault coveroptions: cover, contain, stretch

How to fit differently-sized layers to the background resolution.

When a layer's resolution differs from the background (layer 0), how to fit it: 'cover' (default) scales to fill and center-crops without distorting aspect, 'contain' scales to fit and pads (letterbox), 'stretch' resizes to the exact size (may distort). All layers are aligned to the background so they composite cleanly.

Tags

  • layer
  • compose
  • composite
  • list

All AI models