Skip to content

armgit / hypit

Public Imported from GitHub
0

Clone any viral video with AI agents. Not just a script, the whole workflow: swap the face, the words, the B-roll, ship 100 variants in one command, and get your 100M views.

603 B
Raw Blame
import type { BlobRef } from "@hypit/hypit/protocol";
import type { SpatialFrame } from "@hypit/spatial";

export type ImageComposeOptions = {
  readonly background: string;
};

export type ImageComposeLayerSpec = {
  readonly fit: "contain" | "cover" | "stretch";
  readonly interpolation: "nearest" | "linear" | "cubic" | "area" | "lanczos";
  readonly opacity: number;
};

export type ImageComposeLayer = {
  readonly source: BlobRef;
  readonly frame: SpatialFrame;
  readonly spec: ImageComposeLayerSpec;
};

export type ImageComposeLayerSet = {
  readonly layers: readonly ImageComposeLayer[];
};