From a9bf4f6a95196f5ea832671054073cf0719d6e48 Mon Sep 17 00:00:00 2001 From: Ian Date: Tue, 25 Aug 2026 17:55:40 -0500 Subject: [PATCH] Add automatic aspect matching with explicit ratio overrides. Keep video output on the still by default, and only force 16:9, 9:16, or 1:1 when a preset is selected. --- pages/index.vue | 77 ++++++++++++++++++++++----- server/api/generate.post.ts | 15 +----- server/utils/resolution.ts | 100 ++++++++++++++++++++++++++++++++++++ 3 files changed, 167 insertions(+), 25 deletions(-) create mode 100644 server/utils/resolution.ts diff --git a/pages/index.vue b/pages/index.vue index 51ba3cf..3e3df27 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -60,7 +60,7 @@

Aspect ratio / quality

-
+
+

Output {{ outputSize.width }} × {{ outputSize.height }}{{ aspect === 'auto' ? ' · matching the still' : ' · override' }}

@@ -140,13 +141,14 @@