Try Pro FREE for 2 weeksGet Started

list-inject — Traditional AI Model

The counterpart to extracting: List Inject returns a new collection with one member swapped for the image you supply and everything else carried over untouched. It closes an edit-one-layer round trip. CPU, near-instant.

Details

  • CategoryTraditional
  • Year-1
  • License

Inputs & Outputs

ListInputlist:image

Image list to modify

ImageInputimage

Replacement image

ListOutputlist:image

New image list with the member replaced

Parameters

indexintegerdefault 0range 0–299

0-based index of the member to replace.

fitstringdefault coveroptions: cover, contain, stretch

How to fit a differently-sized replacement image to the frame resolution.

When the replacement image's resolution differs from the collection's frame size, 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). The image is always aligned so downstream nodes (e.g. Video Reassemble) see one uniform resolution.

Tags

  • list
  • inject
  • replace
  • index

Alternatives in Selection & Extraction

All AI models