Skip to content

Create polished demo videos without editing skills. Mac/Windows/Linux

fix issue with export diff size

Siddharth382f6d348c6d
diff --git a/src/components/video-editor/VideoEditor.tsx b/src/components/video-editor/VideoEditor.tsx
index af817c19..3ccfcfef 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);
},
});