AI media harness for planning, generating, and editing locally
TypeScript
Add 1280 export presets
Bitti901e82b5a9a4
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.mdindex 0e14431..530e1a7 100644--- a/RELEASE_NOTES.md+++ b/RELEASE_NOTES.md@@ -4,6 +4,7 @@ This alpha update adds LAN generation workers, Linux support, expanded color gra## What's new+- Image and video export now offer 1280 × 1280, 2276 × 1280, 1280 × 2276 and 1280 × 1600 presets for the supported aspect ratios.- New image scenes default to None style mode, which adds no style instructions to the generated prompt.- Generation diagnostics now separate VAE model opening, weight loading, decoding and cleanup times to help identify intermittent image-generation slowdowns.- Added Long Shot scenes: generate alternating fresh clips and latent bridges in 1 → 3 → 2 → 5 → 4 order. Bridge controls set how much of the neighboring ending and beginning may change, with joined video and audio used in preview and export. Includes updated Windows/Linux runtimes and LAN worker support; update workers alongside the app.diff --git a/src/components/workspace/ExportView.test.tsx b/src/components/workspace/ExportView.test.tsxindex e739552..b96becb 100644--- a/src/components/workspace/ExportView.test.tsx+++ b/src/components/workspace/ExportView.test.tsx@@ -71,7 +71,7 @@ describe("the export view where nothing can encode", () => {config.settings.resolution = "1344p";render(<ExportView config={config} folderPath="/tmp/project" />);const resolution = screen.getByRole("combobox", { name: "Resolution" });- expect(optionNames(resolution)).toEqual(["2432 × 1344 (project)", "1280 × 720", "1920 × 1080", "2560 × 1440", "3840 × 2160"]);+ expect(optionNames(resolution)).toEqual(["2432 × 1344 (project)", "1280 × 720", "1920 × 1080", "2276 × 1280", "2560 × 1440", "3840 × 2160"]);chooseOption(resolution, "3840 × 2160");expect(screen.getByText(/3840 × 2160/)).toBeTruthy();});diff --git a/src/components/workspace/ImageExportView.test.tsx b/src/components/workspace/ImageExportView.test.tsxindex 6ede36f..8079483 100644--- a/src/components/workspace/ImageExportView.test.tsx+++ b/src/components/workspace/ImageExportView.test.tsx@@ -72,7 +72,7 @@ it("sends the chosen size, format and JPG quality, and hides quality for PNG", afireEvent.change(screen.getByRole("slider", { name: "JPG quality" }), { target: { value: "60" } });fireEvent.click(screen.getByRole("combobox", { name: "Resolution" }));expect(screen.getAllByRole("option").map((option) => option.textContent)).toEqual([- "2048 × 1152 (original)", "1280 × 720", "1920 × 1080", "2560 × 1440", "3840 × 2160",+ "2048 × 1152 (original)", "1280 × 720", "1920 × 1080", "2276 × 1280", "2560 × 1440", "3840 × 2160",]);fireEvent.click(screen.getByRole("option", { name: "3840 × 2160" }));fireEvent.click(screen.getByRole("button", { name: "Export…" }));@@ -88,9 +88,9 @@ it("sends the chosen size, format and JPG quality, and hides quality for PNG", a});it.each([- [768, 1376, ["720 × 1280", "1080 × 1920", "1440 × 2560", "2160 × 3840"]],- [1056, 1024, ["512 × 512", "1024 × 1024", "1080 × 1080", "2048 × 2048", "4096 × 4096"]],- [832, 1024, ["720 × 900", "1080 × 1350", "1440 × 1800", "2160 × 2700", "3072 × 3840"]],+ [768, 1376, ["720 × 1280", "1080 × 1920", "1280 × 2276", "1440 × 2560", "2160 × 3840"]],+ [1056, 1024, ["512 × 512", "1024 × 1024", "1080 × 1080", "1280 × 1280", "2048 × 2048", "4096 × 4096"]],+ [832, 1024, ["720 × 900", "1080 × 1350", "1280 × 1600", "1440 × 1800", "2160 × 2700", "3072 × 3840"]],] as const)("offers the closest presets for a %s × %s image despite different saved and project ratios", (width, height, labels) => {vi.spyOn(persistence, "readMediaFileUrl").mockResolvedValue(null);const config = withOutput({ width, height });@@ -112,7 +112,7 @@ it("keeps Original selected across images and omits duplicate presets", () => {expect(screen.getByRole("combobox", { name: "Resolution" })).toHaveTextContent("5760 × 3240 (original)");fireEvent.click(screen.getByRole("combobox", { name: "Resolution" }));expect(screen.getAllByRole("option").map((option) => option.textContent)).toEqual([- "5760 × 3240 (original)", "1280 × 720", "1920 × 1080", "2560 × 1440", "3840 × 2160",+ "5760 × 3240 (original)", "1280 × 720", "1920 × 1080", "2276 × 1280", "2560 × 1440", "3840 × 2160",]);});diff --git a/src/lib/export.test.ts b/src/lib/export.test.tsindex a834c5e..4360b84 100644--- a/src/lib/export.test.ts+++ b/src/lib/export.test.ts@@ -106,8 +106,8 @@ describe("effect compositing", () => {describe("output geometry", () => {it("offers an export its own size first, then the standard sizes that differ", () => {expect(exportSizeChoices({ width: 1920, height: 1080 }, "16:9", "project").map((size) => size.label))- .toEqual(["1920 × 1080 (project)", "1280 × 720", "2560 × 1440", "3840 × 2160"]);- expect(exportSizeChoices(null, "4:5", "original").map((size) => size.value)).toEqual(["720x900", "1080x1350", "1440x1800", "2160x2700", "3072x3840"]);+ .toEqual(["1920 × 1080 (project)", "1280 × 720", "2276 × 1280", "2560 × 1440", "3840 × 2160"]);+ expect(exportSizeChoices(null, "4:5", "original").map((size) => size.value)).toEqual(["720x900", "1080x1350", "1280x1600", "1440x1800", "2160x2700", "3072x3840"]);});it("asks H.264 for a level that holds the frame, past 4K UHD too", () => {diff --git a/src/lib/export.ts b/src/lib/export.tsindex c5d79db..e20271e 100644--- a/src/lib/export.ts+++ b/src/lib/export.ts@@ -225,14 +225,15 @@ export function resolutionLabel(resolution: Resolution, aspectRatio: AspectRatio}/* The sizes an export offers besides the project's own: the standard delivery- sizes at each aspect, at its exact ratio. The generation ladder above is on a+ sizes at each aspect. The 1280 short-edge widescreen sizes round to the+ nearest even pixel for encoding. The generation ladder above is on a32-pixel grid, which is what the model needs and not what a player or aplatform expects — so an export may leave it. */export const STANDARD_EXPORT_SIZES: Record<AspectRatio, readonly (readonly [number, number])[]> = {- "16:9": [[1280, 720], [1920, 1080], [2560, 1440], [3840, 2160]],- "9:16": [[720, 1280], [1080, 1920], [1440, 2560], [2160, 3840]],- "1:1": [[512, 512], [1024, 1024], [1080, 1080], [2048, 2048], [4096, 4096]],- "4:5": [[720, 900], [1080, 1350], [1440, 1800], [2160, 2700], [3072, 3840]],+ "16:9": [[1280, 720], [1920, 1080], [2276, 1280], [2560, 1440], [3840, 2160]],+ "9:16": [[720, 1280], [1080, 1920], [1280, 2276], [1440, 2560], [2160, 3840]],+ "1:1": [[512, 512], [1024, 1024], [1080, 1080], [1280, 1280], [2048, 2048], [4096, 4096]],+ "4:5": [[720, 900], [1080, 1350], [1280, 1600], [1440, 1800], [2160, 2700], [3072, 3840]],};export const exportSizeKey = (width: number, height: number) => `${width}x${height}`;