From 382f6d348c6d1f312ddfbaa83d20d8a1be1401ee Mon Sep 17 00:00:00 2001 From: Siddharth Date: Sun, 16 Nov 2025 21:04:26 -0700 Subject: [PATCH] fix issue with export diff size --- src/components/video-editor/VideoEditor.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/video-editor/VideoEditor.tsx b/src/components/video-editor/VideoEditor.tsx index af817c1..3ccfcfe 100644 --- a/src/components/video-editor/VideoEditor.tsx +++ b/src/components/video-editor/VideoEditor.tsx @@ -187,9 +187,9 @@ export default function VideoEditor() { videoPlaybackRef.current?.pause(); } - // Determine export dimensions (use video dimensions) - const width = video.videoWidth; - const height = video.videoHeight; + // Always export at 1920x1080 (16:9) + const width = 1920; + const height = 1080; const exporter = new VideoExporter({ videoUrl: videoPath, @@ -203,7 +203,7 @@ export default function VideoEditor() { showShadow, showBlur, cropRegion, - onProgress: (progress) => { + onProgress: (progress: ExportProgress) => { setExportProgress(progress); }, });