Merge branch 'main' into bl-merge-lg-fe

This commit is contained in:
Benjamin Lu
2025-08-05 18:24:29 -04:00
committed by GitHub
7 changed files with 155 additions and 18 deletions

View File

@@ -847,10 +847,13 @@ export const useLitegraphService = () => {
const isAnimatedWebp =
this.animatedImages &&
// @ts-expect-error fixme ts strict error
output.images.some((img) => img.filename?.includes('webp'))
output?.images?.some((img) => img.filename?.includes('webp'))
const isAnimatedPng =
this.animatedImages &&
output?.images?.some((img) => img.filename?.includes('png'))
const isVideo =
(this.animatedImages && !isAnimatedWebp) || isVideoNode(this)
(this.animatedImages && !isAnimatedWebp && !isAnimatedPng) ||
isVideoNode(this)
if (isVideo) {
useNodeVideo(this).showPreview()
} else {