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.

Shorts Studio: real looks on twelve presets

Adarsh3f145e4ecb80
diff --git a/public/previews/templates/shorts/shorts-balloon-type.jpg b/public/previews/templates/shorts/shorts-balloon-type.jpg
new file mode 100644
index 00000000..abac957a
Binary files /dev/null and b/public/previews/templates/shorts/shorts-balloon-type.jpg differ
diff --git a/public/previews/templates/shorts/shorts-balloon-type.mp4 b/public/previews/templates/shorts/shorts-balloon-type.mp4
new file mode 100644
index 00000000..4685c2e5
Binary files /dev/null and b/public/previews/templates/shorts/shorts-balloon-type.mp4 differ
diff --git a/public/previews/templates/shorts/shorts-bold-caption.jpg b/public/previews/templates/shorts/shorts-bold-caption.jpg
new file mode 100644
index 00000000..12bef11a
Binary files /dev/null and b/public/previews/templates/shorts/shorts-bold-caption.jpg differ
diff --git a/public/previews/templates/shorts/shorts-bold-caption.mp4 b/public/previews/templates/shorts/shorts-bold-caption.mp4
new file mode 100644
index 00000000..832d0c1b
Binary files /dev/null and b/public/previews/templates/shorts/shorts-bold-caption.mp4 differ
diff --git a/public/previews/templates/shorts/shorts-comic-pop.jpg b/public/previews/templates/shorts/shorts-comic-pop.jpg
new file mode 100644
index 00000000..b3c2a87f
Binary files /dev/null and b/public/previews/templates/shorts/shorts-comic-pop.jpg differ
diff --git a/public/previews/templates/shorts/shorts-comic-pop.mp4 b/public/previews/templates/shorts/shorts-comic-pop.mp4
new file mode 100644
index 00000000..34bacbef
Binary files /dev/null and b/public/previews/templates/shorts/shorts-comic-pop.mp4 differ
diff --git a/public/previews/templates/shorts/shorts-heart-pop.jpg b/public/previews/templates/shorts/shorts-heart-pop.jpg
new file mode 100644
index 00000000..c6f8da92
Binary files /dev/null and b/public/previews/templates/shorts/shorts-heart-pop.jpg differ
diff --git a/public/previews/templates/shorts/shorts-heart-pop.mp4 b/public/previews/templates/shorts/shorts-heart-pop.mp4
new file mode 100644
index 00000000..13efbfd2
Binary files /dev/null and b/public/previews/templates/shorts/shorts-heart-pop.mp4 differ
diff --git a/public/previews/templates/shorts/shorts-marker-scribble.jpg b/public/previews/templates/shorts/shorts-marker-scribble.jpg
new file mode 100644
index 00000000..2975f7b5
Binary files /dev/null and b/public/previews/templates/shorts/shorts-marker-scribble.jpg differ
diff --git a/public/previews/templates/shorts/shorts-marker-scribble.mp4 b/public/previews/templates/shorts/shorts-marker-scribble.mp4
new file mode 100644
index 00000000..5b338ed7
Binary files /dev/null and b/public/previews/templates/shorts/shorts-marker-scribble.mp4 differ
diff --git a/public/previews/templates/shorts/shorts-pencil-sketch.jpg b/public/previews/templates/shorts/shorts-pencil-sketch.jpg
new file mode 100644
index 00000000..9ab1ce86
Binary files /dev/null and b/public/previews/templates/shorts/shorts-pencil-sketch.jpg differ
diff --git a/public/previews/templates/shorts/shorts-pencil-sketch.mp4 b/public/previews/templates/shorts/shorts-pencil-sketch.mp4
new file mode 100644
index 00000000..b6e452af
Binary files /dev/null and b/public/previews/templates/shorts/shorts-pencil-sketch.mp4 differ
diff --git a/public/previews/templates/shorts/shorts-pink-pop.jpg b/public/previews/templates/shorts/shorts-pink-pop.jpg
new file mode 100644
index 00000000..6388eeae
Binary files /dev/null and b/public/previews/templates/shorts/shorts-pink-pop.jpg differ
diff --git a/public/previews/templates/shorts/shorts-pink-pop.mp4 b/public/previews/templates/shorts/shorts-pink-pop.mp4
new file mode 100644
index 00000000..fe90e747
Binary files /dev/null and b/public/previews/templates/shorts/shorts-pink-pop.mp4 differ
diff --git a/public/previews/templates/shorts/shorts-pink-scribble.jpg b/public/previews/templates/shorts/shorts-pink-scribble.jpg
new file mode 100644
index 00000000..37da5d83
Binary files /dev/null and b/public/previews/templates/shorts/shorts-pink-scribble.jpg differ
diff --git a/public/previews/templates/shorts/shorts-pink-scribble.mp4 b/public/previews/templates/shorts/shorts-pink-scribble.mp4
new file mode 100644
index 00000000..4a8efc65
Binary files /dev/null and b/public/previews/templates/shorts/shorts-pink-scribble.mp4 differ
diff --git a/public/previews/templates/shorts/shorts-polka-pop.jpg b/public/previews/templates/shorts/shorts-polka-pop.jpg
new file mode 100644
index 00000000..ad49d186
Binary files /dev/null and b/public/previews/templates/shorts/shorts-polka-pop.jpg differ
diff --git a/public/previews/templates/shorts/shorts-polka-pop.mp4 b/public/previews/templates/shorts/shorts-polka-pop.mp4
new file mode 100644
index 00000000..135d616b
Binary files /dev/null and b/public/previews/templates/shorts/shorts-polka-pop.mp4 differ
diff --git a/public/previews/templates/shorts/shorts-sticker-type.jpg b/public/previews/templates/shorts/shorts-sticker-type.jpg
new file mode 100644
index 00000000..3308021c
Binary files /dev/null and b/public/previews/templates/shorts/shorts-sticker-type.jpg differ
diff --git a/public/previews/templates/shorts/shorts-sticker-type.mp4 b/public/previews/templates/shorts/shorts-sticker-type.mp4
new file mode 100644
index 00000000..4fa8beef
Binary files /dev/null and b/public/previews/templates/shorts/shorts-sticker-type.mp4 differ
diff --git a/public/previews/templates/shorts/shorts-warm-glow.jpg b/public/previews/templates/shorts/shorts-warm-glow.jpg
new file mode 100644
index 00000000..719e0333
Binary files /dev/null and b/public/previews/templates/shorts/shorts-warm-glow.jpg differ
diff --git a/public/previews/templates/shorts/shorts-warm-glow.mp4 b/public/previews/templates/shorts/shorts-warm-glow.mp4
new file mode 100644
index 00000000..d4da26fe
Binary files /dev/null and b/public/previews/templates/shorts/shorts-warm-glow.mp4 differ
diff --git a/public/previews/templates/shorts/shorts-yellow-frame.jpg b/public/previews/templates/shorts/shorts-yellow-frame.jpg
new file mode 100644
index 00000000..f7ed7a71
Binary files /dev/null and b/public/previews/templates/shorts/shorts-yellow-frame.jpg differ
diff --git a/public/previews/templates/shorts/shorts-yellow-frame.mp4 b/public/previews/templates/shorts/shorts-yellow-frame.mp4
new file mode 100644
index 00000000..1400e903
Binary files /dev/null and b/public/previews/templates/shorts/shorts-yellow-frame.mp4 differ
diff --git a/public/previews/templates/shorts/thumbs/shorts-balloon-type.jpg b/public/previews/templates/shorts/thumbs/shorts-balloon-type.jpg
new file mode 100644
index 00000000..8e77ee6e
Binary files /dev/null and b/public/previews/templates/shorts/thumbs/shorts-balloon-type.jpg differ
diff --git a/public/previews/templates/shorts/thumbs/shorts-bold-caption.jpg b/public/previews/templates/shorts/thumbs/shorts-bold-caption.jpg
new file mode 100644
index 00000000..c4ce20cb
Binary files /dev/null and b/public/previews/templates/shorts/thumbs/shorts-bold-caption.jpg differ
diff --git a/public/previews/templates/shorts/thumbs/shorts-comic-pop.jpg b/public/previews/templates/shorts/thumbs/shorts-comic-pop.jpg
new file mode 100644
index 00000000..30148a65
Binary files /dev/null and b/public/previews/templates/shorts/thumbs/shorts-comic-pop.jpg differ
diff --git a/public/previews/templates/shorts/thumbs/shorts-heart-pop.jpg b/public/previews/templates/shorts/thumbs/shorts-heart-pop.jpg
new file mode 100644
index 00000000..46d39a6d
Binary files /dev/null and b/public/previews/templates/shorts/thumbs/shorts-heart-pop.jpg differ
diff --git a/public/previews/templates/shorts/thumbs/shorts-marker-scribble.jpg b/public/previews/templates/shorts/thumbs/shorts-marker-scribble.jpg
new file mode 100644
index 00000000..3cda4036
Binary files /dev/null and b/public/previews/templates/shorts/thumbs/shorts-marker-scribble.jpg differ
diff --git a/public/previews/templates/shorts/thumbs/shorts-pencil-sketch.jpg b/public/previews/templates/shorts/thumbs/shorts-pencil-sketch.jpg
new file mode 100644
index 00000000..ad8847f6
Binary files /dev/null and b/public/previews/templates/shorts/thumbs/shorts-pencil-sketch.jpg differ
diff --git a/public/previews/templates/shorts/thumbs/shorts-pink-pop.jpg b/public/previews/templates/shorts/thumbs/shorts-pink-pop.jpg
new file mode 100644
index 00000000..0c7dc910
Binary files /dev/null and b/public/previews/templates/shorts/thumbs/shorts-pink-pop.jpg differ
diff --git a/public/previews/templates/shorts/thumbs/shorts-pink-scribble.jpg b/public/previews/templates/shorts/thumbs/shorts-pink-scribble.jpg
new file mode 100644
index 00000000..d6fc2e36
Binary files /dev/null and b/public/previews/templates/shorts/thumbs/shorts-pink-scribble.jpg differ
diff --git a/public/previews/templates/shorts/thumbs/shorts-polka-pop.jpg b/public/previews/templates/shorts/thumbs/shorts-polka-pop.jpg
new file mode 100644
index 00000000..89a5632e
Binary files /dev/null and b/public/previews/templates/shorts/thumbs/shorts-polka-pop.jpg differ
diff --git a/public/previews/templates/shorts/thumbs/shorts-sticker-type.jpg b/public/previews/templates/shorts/thumbs/shorts-sticker-type.jpg
new file mode 100644
index 00000000..9cf0eab3
Binary files /dev/null and b/public/previews/templates/shorts/thumbs/shorts-sticker-type.jpg differ
diff --git a/public/previews/templates/shorts/thumbs/shorts-warm-glow.jpg b/public/previews/templates/shorts/thumbs/shorts-warm-glow.jpg
new file mode 100644
index 00000000..199f14da
Binary files /dev/null and b/public/previews/templates/shorts/thumbs/shorts-warm-glow.jpg differ
diff --git a/public/previews/templates/shorts/thumbs/shorts-yellow-frame.jpg b/public/previews/templates/shorts/thumbs/shorts-yellow-frame.jpg
new file mode 100644
index 00000000..57f5c5d9
Binary files /dev/null and b/public/previews/templates/shorts/thumbs/shorts-yellow-frame.jpg differ
diff --git a/src/components/genjutsu/look-picker.tsx b/src/components/genjutsu/look-picker.tsx
index a7714974..a3d108b9 100644
--- a/src/components/genjutsu/look-picker.tsx
+++ b/src/components/genjutsu/look-picker.tsx
@@ -10,7 +10,7 @@ import { fileToList, MediaSlot, type SlotValue } from "@/components/studio/media
import { LookCard } from "@/components/shorts/preset-card";
import { tabKeys } from "@/components/shorts/ui";
import { GENJUTSU, type GenjutsuLook } from "@/lib/catalog/genjutsu";
-import { SHORTS_PRESETS, shortsPreview } from "@/lib/catalog/shorts";
+import { coveredFirst, SHORTS_PRESETS, shortsPreview } from "@/lib/catalog/shorts";
import { SOUL_LOOK_CARDS } from "@/lib/catalog/soul-cards";
import { cn } from "@/lib/utils";
@@ -46,7 +46,7 @@ export function LookPicker({
{ id: "custom", label: "Your own" },
];
const words_ = q.trim().toLowerCase();
- const presets = useMemo(() => (words_ ? SHORTS_PRESETS.filter((p) => `${p.name} ${p.category} ${p.description}`.toLowerCase().includes(words_)) : SHORTS_PRESETS), [words_]);
+ const presets = useMemo(() => coveredFirst(words_ ? SHORTS_PRESETS.filter((p) => `${p.name} ${p.category} ${p.description}`.toLowerCase().includes(words_)) : SHORTS_PRESETS), [words_]);
const souls = useMemo(() => (words_ ? SOUL_LOOK_CARDS.filter((l) => `${l.name} ${l.description} ${l.categories.join(" ")}`.toLowerCase().includes(words_)) : SOUL_LOOK_CARDS), [words_]);
return (
<div className="space-y-3">
diff --git a/src/components/shorts/shorts-studio.tsx b/src/components/shorts/shorts-studio.tsx
index ea2e2122..e2e851e7 100644
--- a/src/components/shorts/shorts-studio.tsx
+++ b/src/components/shorts/shorts-studio.tsx
@@ -13,6 +13,7 @@ import { VideoTrimmer } from "@/components/studio/video-trimmer";
import { useEngine, useIsOwner, useLikelyVisitor, useModelAccess } from "@/lib/api";
import {
clipShapeProblem,
+ coveredFirst,
rangeProblem,
SHORTS,
SHORTS_CATEGORIES,
@@ -239,7 +240,7 @@ function PresetGrid({
const query = useDeferredValue(q.trim().toLowerCase());
const cats = ["All", ...(custom.length ? [CUSTOM] : []), ...SHORTS_CATEGORIES];
const list = useMemo(
- () => SHORTS_PRESETS.filter((p) => (cat === "All" || p.category === cat) && (!query || `${p.name} ${p.description} ${p.category}`.toLowerCase().includes(query))),
+ () => coveredFirst(SHORTS_PRESETS.filter((p) => (cat === "All" || p.category === cat) && (!query || `${p.name} ${p.description} ${p.category}`.toLowerCase().includes(query)))),
[cat, query],
);
const mine = custom.filter((p) => (cat === "All" || cat === CUSTOM) && (!query || `${p.name} ${p.description}`.toLowerCase().includes(query)));
diff --git a/src/lib/catalog/shorts.ts b/src/lib/catalog/shorts.ts
index a9a236a2..f9e4ab57 100644
--- a/src/lib/catalog/shorts.ts
+++ b/src/lib/catalog/shorts.ts
@@ -198,6 +198,11 @@ export function getShortsPreset(id: string): ShortsPreset | undefined {
return SHORTS_PRESETS.find((p) => p.id === id);
}
+/** Looks with a real cover lead; the rest keep their catalog order after them. */
+export function coveredFirst<T extends Pick<ShortsPreset, "id">>(list: readonly T[]): T[] {
+ return [...list].sort((a, b) => Number(!templateCover("shorts", a.id)) - Number(!templateCover("shorts", b.id)));
+}
+
/** A look's card preview: its real cover when it has one (templateCover: the restyled frame, and its reveal), else drawn. */
export function shortsPreview(p: Pick<ShortsPreset, "id" | "scene" | "fx">): PresetPreview {
const cover = templateCover("shorts", p.id);
diff --git a/src/lib/template-covers.generated.ts b/src/lib/template-covers.generated.ts
index 4156d9d8..50c1dde5 100644
--- a/src/lib/template-covers.generated.ts
+++ b/src/lib/template-covers.generated.ts
@@ -38,5 +38,17 @@ export const TEMPLATE_COVERS: Record<string, TemplateCoverEntry> = {
"mixed-media/mixed-sketch": {"poster":"/previews/presets/peak/effect-sketch.jpg?v=24e23540","video":"/previews/presets/effect-sketch.mp4?v=4e4bc4c0","at":2.4375},
"mixed-media/mixed-toxic": {"poster":"/previews/presets/peak/effect-toxic.jpg?v=146b540c","video":"/previews/presets/effect-toxic.mp4?v=f160fa6a","at":3.3542},
"mixed-media/mixed-tracking": {"poster":"/previews/presets/peak/effect-tracking.jpg?v=820420f2","video":"/previews/presets/effect-tracking.mp4?v=b0482bde","at":3.5208},
- "mixed-media/mixed-windows": {"poster":"/previews/presets/peak/effect-windows.jpg?v=6566b7b2","video":"/previews/presets/effect-windows.mp4?v=ddb89362","at":3.0208}
+ "mixed-media/mixed-windows": {"poster":"/previews/presets/peak/effect-windows.jpg?v=6566b7b2","video":"/previews/presets/effect-windows.mp4?v=ddb89362","at":3.0208},
+ "shorts/shorts-balloon-type": {"poster":"/previews/templates/shorts/shorts-balloon-type.jpg?v=b18c41f3","video":"/previews/templates/shorts/shorts-balloon-type.mp4?v=4ff57efd","at":3.542},
+ "shorts/shorts-bold-caption": {"poster":"/previews/templates/shorts/shorts-bold-caption.jpg?v=190afd6a","video":"/previews/templates/shorts/shorts-bold-caption.mp4?v=4222f06b","at":3.542},
+ "shorts/shorts-comic-pop": {"poster":"/previews/templates/shorts/shorts-comic-pop.jpg?v=aec69bca","video":"/previews/templates/shorts/shorts-comic-pop.mp4?v=302e2639","at":3.542},
+ "shorts/shorts-heart-pop": {"poster":"/previews/templates/shorts/shorts-heart-pop.jpg?v=89ee979c","video":"/previews/templates/shorts/shorts-heart-pop.mp4?v=e19bedc9","at":3.542},
+ "shorts/shorts-marker-scribble": {"poster":"/previews/templates/shorts/shorts-marker-scribble.jpg?v=d8d2d121","video":"/previews/templates/shorts/shorts-marker-scribble.mp4?v=9f8c804e","at":3.542},
+ "shorts/shorts-pencil-sketch": {"poster":"/previews/templates/shorts/shorts-pencil-sketch.jpg?v=a092b4f0","video":"/previews/templates/shorts/shorts-pencil-sketch.mp4?v=f71c362d","at":3.542},
+ "shorts/shorts-pink-pop": {"poster":"/previews/templates/shorts/shorts-pink-pop.jpg?v=5f154f00","video":"/previews/templates/shorts/shorts-pink-pop.mp4?v=2f824754","at":3.542},
+ "shorts/shorts-pink-scribble": {"poster":"/previews/templates/shorts/shorts-pink-scribble.jpg?v=4f77dfae","video":"/previews/templates/shorts/shorts-pink-scribble.mp4?v=7c250777","at":3.542},
+ "shorts/shorts-polka-pop": {"poster":"/previews/templates/shorts/shorts-polka-pop.jpg?v=0241d97e","video":"/previews/templates/shorts/shorts-polka-pop.mp4?v=c549ac20","at":3.542},
+ "shorts/shorts-sticker-type": {"poster":"/previews/templates/shorts/shorts-sticker-type.jpg?v=79228a50","video":"/previews/templates/shorts/shorts-sticker-type.mp4?v=f6e5f887","at":3.542},
+ "shorts/shorts-warm-glow": {"poster":"/previews/templates/shorts/shorts-warm-glow.jpg?v=42c2f340","video":"/previews/templates/shorts/shorts-warm-glow.mp4?v=2a87f762","at":3.542},
+ "shorts/shorts-yellow-frame": {"poster":"/previews/templates/shorts/shorts-yellow-frame.jpg?v=e224b12c","video":"/previews/templates/shorts/shorts-yellow-frame.mp4?v=854f4c90","at":3.542}
};
diff --git a/tests/template-cover-tiles.test.ts b/tests/template-cover-tiles.test.ts
index a5fdbfe3..f2c6cd2e 100644
--- a/tests/template-cover-tiles.test.ts
+++ b/tests/template-cover-tiles.test.ts
@@ -37,7 +37,7 @@ const { PresetTile } = await import("@/components/content-factory/parts");
const { StyleArt } = await import("@/components/faceless/style-art");
const { TEMPLATES } = await import("@/lib/catalog/marketing");
const { FASHION, PACKS } = await import("@/lib/catalog/packs");
-const { SHORTS_PRESETS, shortsPreview } = await import("@/lib/catalog/shorts");
+const { coveredFirst, SHORTS_PRESETS, shortsPreview } = await import("@/lib/catalog/shorts");
const { MIXED_PRESETS, mixedPreview } = await import("@/lib/catalog/mixed-media");
const { CANVAS_TEMPLATES, outline } = await import("@/lib/catalog/canvas");
const { PRESETS } = await import("@/lib/catalog/content-factory");
@@ -134,6 +134,12 @@ describe("Shorts and Mixed Media looks", () => {
const mixed = by(MIXED_PRESETS, "mixed-noir");
expect(mixedPreview(mixed)).toEqual({ poster: expect.stringMatching(/^\/samples\/previews\//), scene: mixed.scene, fx: mixed.fx });
});
+
+ it("list the Shorts looks with a cover first, the rest in catalog order", () => {
+ const ids = coveredFirst(SHORTS_PRESETS).map((p) => p.id);
+ expect(ids[0]).toBe("shorts-warm-glow");
+ expect(ids.slice(1)).toEqual(SHORTS_PRESETS.map((p) => p.id).filter((id) => id !== "shorts-warm-glow"));
+ });
});
describe("Canvas templates", () => {