Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
·
15f63f6
1
Parent(s):
f26d0ef
mini fix
Browse files
src/bug-in-bun/aitube_ffmpeg/overlay/imageToVideoBase64.ts
CHANGED
@@ -73,8 +73,8 @@ export async function imageToVideoBase64({
|
|
73 |
});
|
74 |
});
|
75 |
|
76 |
-
const originalWidth = inputImageDetails.streams[0].width;
|
77 |
-
const originalHeight = inputImageDetails.streams[0].height;
|
78 |
const originalAspect = originalWidth / originalHeight;
|
79 |
const targetAspect = width / height;
|
80 |
let cropWidth, cropHeight;
|
|
|
73 |
});
|
74 |
});
|
75 |
|
76 |
+
const originalWidth = inputImageDetails.streams[0].width || width;
|
77 |
+
const originalHeight = inputImageDetails.streams[0].height || height;
|
78 |
const originalAspect = originalWidth / originalHeight;
|
79 |
const targetAspect = width / height;
|
80 |
let cropWidth, cropHeight;
|