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.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
Mixed Media: a per-frame render's progress bar is mostly the frames; Fast's note without a brand name
Claudeac40ba982cff
diff --git a/src/components/marketing/click-to-ad.tsx b/src/components/marketing/click-to-ad.tsxindex a7067164..2c785f91 100644--- a/src/components/marketing/click-to-ad.tsx+++ b/src/components/marketing/click-to-ad.tsx@@ -68,7 +68,12 @@ function EndCardPreview({ input, className }: { input: EndCardInput; className?:const ref = useRef<HTMLCanvasElement>(null);const key = JSON.stringify(input);useEffect(() => {- if (ref.current) void renderEndCard(ref.current, JSON.parse(key) as EndCardInput, 0.3);+ // The logo and fonts load at their own pace: only the latest look is drawn.+ let live = true;+ if (ref.current) void renderEndCard(ref.current, JSON.parse(key) as EndCardInput, 0.3, () => live);+ return () => {+ live = false;+ };}, [key]);const words = [input.content.brand, input.content.product, input.content.cta].filter(Boolean).join(", ");return <canvas ref={ref} role="img" aria-label={`End card preview: ${words}`} className={cn("aspect-[9/16] rounded-lg border bg-muted", className)} />;diff --git a/src/components/marketing/end-card.ts b/src/components/marketing/end-card.tsindex b56a0e5b..c8198f89 100644--- a/src/components/marketing/end-card.ts+++ b/src/components/marketing/end-card.ts@@ -88,9 +88,13 @@ export interface EndCardInput {logo?: string | null;}-/** Draw the card on `canvas` at `scale` (1 = the full 720 × 1280 card). */-export async function renderEndCard(canvas: HTMLCanvasElement, input: EndCardInput, scale = 1): Promise<void> {+/**+ * Draw the card on `canvas` at `scale` (1 = the full 720 × 1280 card). Fonts and the logo load first;+ * `current` says whether this drawing is still wanted then (a newer one for the same canvas wins).+ */+export async function renderEndCard(canvas: HTMLCanvasElement, input: EndCardInput, scale = 1, current: () => boolean = () => true): Promise<void> {const [logo] = await Promise.all([input.logo ? loadImage(input.logo).catch(() => null) : null, ensureFont(input.theme.heading), ensureFont(input.theme.body)]);+ if (!current()) return;const { w, h } = END_CARD.size;canvas.width = Math.round(w * scale);canvas.height = Math.round(h * scale);diff --git a/src/components/mixed-media/mixed-studio.tsx b/src/components/mixed-media/mixed-studio.tsxindex 31ef2219..8fb0c3da 100644--- a/src/components/mixed-media/mixed-studio.tsx+++ b/src/components/mixed-media/mixed-studio.tsx@@ -665,10 +665,12 @@ function LatestRender({ chain, frames }: { chain: (Generation | undefined)[]; frconst redrawing = perFrame && steps?.status === "working" && steps.label === "Redrawing the frames";const progress = useFramesProgress(perFrame ? g?.batchId : null, redrawing || steps?.status === "failed").data;let state = steps ?? ({ status: "working", label: "Rendering", progress: 0 } as const);- if (redrawing && progress?.total) {- // The frames are most of the work: show them as the bar between taking and rebuilding them.- const at = chain.findIndex((x) => x?.op === "images-to-video");- state = { ...state, label: `Redrawing frames · ${progress.done} of ${progress.total}`, progress: (at + progress.done / progress.total) / chain.length };+ if (perFrame && state.status === "working") {+ // The frames are most of the work: the cut and the extraction fill the first tenth of the bar, redrawing the+ // frames the next eight, putting them back together (and the sound) the last tenth.+ const at = Math.max(1, chain.findIndex((x) => x?.op === "images-to-video")) / chain.length;+ const p = redrawing ? 0.1 + 0.8 * (progress?.total ? progress.done / progress.total : 0) : state.progress < at ? (state.progress / at) * 0.1 : 0.9 + ((state.progress - at) / (1 - at)) * 0.1;+ state = { ...state, progress: p, ...(redrawing && progress?.total ? { label: `Redrawing frames · ${progress.done} of ${progress.total}` } : {}) };}// A frame that failed: say which and why (the steps after it only say an earlier step didn't finish).if (state.status === "failed" && progress?.failed) state = { ...state, label: `${progress.failed.label} failed`, error: progress.failed.error };diff --git a/src/server/mixed-media.ts b/src/server/mixed-media.tsindex 449c4cb6..8e927647 100644--- a/src/server/mixed-media.ts+++ b/src/server/mixed-media.ts@@ -99,7 +99,7 @@ async function planInput(body: MixedBody, opts: { probe: boolean }): Promise<{ iconst anchor = mode === "frames" ? body.anchor : mode === "fast" && body.anchor && takesImage(modelId) ? body.anchor : undefined;if (mode === "fast") {if (body.anchor && !anchor) notes.push(`${model?.name} restyles from words only — the preview frame isn't sent`);- notes.push(`${model?.name} restyles the clip as smooth video in one pass — Per frame redraws every frame like Higgsfield`);+ notes.push(`${model?.name} restyles the clip as smooth video in one pass — Per frame redraws every frame of it instead`);} else if (!mode && body.resolution !== "1K") notes.push("The open engine renders up to 1536 px on the long side");const name = (body.source.name ?? "").replace(/\.[a-z0-9]{2,4}$/i, "").trim().slice(0, 40);return {