Image

Image layer configuration

The config argument supports the following layer configuration properties:

Examples

Minimal

await composition.addImage(
  "https://editframe.com/docs/composition/layers/image/cyber-feathers.jpb"
);

Full layer configuration

await composition.addImage(
  // file
  "https://editframe.com/docs/composition/layers/image/cyber-feathers.jpb",
  // config
  {
    position: {
      x: "center",
      y: "center",
    },
    size: {
      height: 500,
      width: 1000,
    },
    timeline: {
      start: 1,
    },
    trim: {
      start: 0,
      end: 5,
    },
  }
);