Commit 6fa9631a authored by Dazzle Wu's avatar Dazzle Wu

fix: 视频数字人图片固定高度缩放

parent dae24d24
......@@ -42,9 +42,9 @@ const resizeObserver = new ResizeObserver((entries) => {
const isLandscape = computed(() => digitalCreationStore.width > digitalCreationStore.height)
const digitalHumanWidth = computed(
() => (digitalCreationStore.w * previewContentWidth.value) / (isLandscape.value ? 1920 : 1080),
)
// const digitalHumanWidth = computed(
// () => (digitalCreationStore.w * previewContentWidth.value) / (isLandscape.value ? 1920 : 1080),
// )
const digitalHumanHeight = computed(
() => (digitalCreationStore.h * previewContentHeight.value) / (isLandscape.value ? 1080 : 1920),
)
......@@ -159,7 +159,7 @@ function controlAudio() {
:src="digitalCreationStore.inputImageUrl"
class="absolute max-w-none object-cover"
:style="{
width: `${digitalHumanWidth}px`,
// width: `${digitalHumanWidth}px`,
height: `${digitalHumanHeight}px`,
left: `${digitalHumanLeft}px`,
top: `${digitalHumanTop}px`,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment