Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

3.4 KB
Raw Blame
/**
 * Fuobe FX's cover pairs, by FX item id (src/lib/fx-tools.ts): public/previews/fx/<id>/before.480.webp and after.480.webp
 * (480x360, the same framing, so a divider lines up), the same at 960x720 (.960.webp) and, for an `hd` pair, 1440x1080
 * (.1440.webp), and each as .avif. "matte": the
 * after is a cut-out with alpha. "depth": the after is the depth pass. "loupe": also before.loupe.webp / after.loupe.webp
 * (240x240; .loupe2x.webp 480x480), a 1:1 detail of the after and the before enlarged to it, at `loupe` (fractions
 * x, y, w, h of the frame). "strip": also strip.webp, 6 frames of the output clip side by side, 480x360 each.
 * "reframe": also wide.480.webp / wide.960.webp / wide.1440.webp (the before at 16:9), and `rect` is the 9:16 crop's box in it (fractions). Every URL ends in ?v=<v>. Generated by
 * scripts/gen-fx-pairs.mjs: run it again rather than editing.
 */
export interface FxPair {
  v: string;
  kind: "pair" | "matte" | "depth" | "loupe" | "strip" | "reframe";
  /** It has 1440 px copies (its after is that sharp). */
  hd?: boolean;
  loupe?: [number, number, number, number];
  frames?: number;
  rect?: [number, number, number, number];
}

/** An FX item's pair file, versioned: fxPairSrc("video-tools-depth", "after.480.webp"). */
export const fxPairSrc = (id: string, file: string): string | undefined => (FX_PAIRS[id] ? `/previews/fx/${id}/${file}?v=${FX_PAIRS[id].v}` : undefined);

export const FX_PAIRS: Record<string, FxPair> = {
 "body-double": {
  "v": "ff6b1f8f",
  "kind": "pair",
  "hd": true
 },
 "character-swap": {
  "v": "c02eceb8",
  "kind": "pair",
  "hd": true
 },
 "color-grade": {
  "v": "e2e25c40",
  "kind": "pair",
  "hd": true
 },
 "extend": {
  "v": "e88b8655",
  "kind": "strip",
  "frames": 6
 },
 "genjutsu": {
  "v": "026a7ea7",
  "kind": "pair"
 },
 "genjutsu-character": {
  "v": "f330b183",
  "kind": "pair"
 },
 "genjutsu-finish": {
  "v": "4ac2d952",
  "kind": "pair"
 },
 "genjutsu-insert": {
  "v": "2b9d874b",
  "kind": "pair"
 },
 "genjutsu-motion": {
  "v": "7f2683ea",
  "kind": "pair"
 },
 "genjutsu-restyle": {
  "v": "5f2dcae3",
  "kind": "pair",
  "hd": true
 },
 "genjutsu-swap": {
  "v": "912009fd",
  "kind": "pair"
 },
 "image-to-3d": {
  "v": "e51a6d45",
  "kind": "pair"
 },
 "image-to-3d-splat": {
  "v": "ad83fb11",
  "kind": "pair"
 },
 "inpaint": {
  "v": "5ef847bd",
  "kind": "pair",
  "hd": true
 },
 "layers": {
  "v": "cc85037f",
  "kind": "pair",
  "hd": true
 },
 "motion-control": {
  "v": "4480ab9c",
  "kind": "pair"
 },
 "reframe": {
  "v": "6003e3f7",
  "kind": "reframe",
  "rect": [
   0.3418,
   0,
   0.3164,
   1
  ]
 },
 "upscale": {
  "v": "6584800e",
  "kind": "loupe",
  "hd": true,
  "loupe": [
   0.4063,
   0.2752,
   0.1875,
   0.25
  ]
 },
 "upscale-fps": {
  "v": "23829358",
  "kind": "strip",
  "frames": 6
 },
 "upscale-video": {
  "v": "30a163e1",
  "kind": "loupe",
  "hd": true,
  "loupe": [
   0.4361,
   0.2046,
   0.1875,
   0.25
  ]
 },
 "video-tools": {
  "v": "a5c1dd99",
  "kind": "matte"
 },
 "video-tools-colors": {
  "v": "0bf966cc",
  "kind": "pair"
 },
 "video-tools-depth": {
  "v": "bc0f77ce",
  "kind": "depth"
 },
 "video-tools-green-screen": {
  "v": "21727225",
  "kind": "pair",
  "hd": true
 },
 "video-tools-relight": {
  "v": "25c52e2f",
  "kind": "pair",
  "hd": true
 },
 "video-tools-remove-object": {
  "v": "223c516a",
  "kind": "pair",
  "hd": true
 },
 "video-tools-restore": {
  "v": "1d375f1d",
  "kind": "pair",
  "hd": true
 }
};