[Bug] SaveAnimatedPNG node does not display generated APNG (#4197)

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Christian Byrne
2025-08-04 14:57:54 -07:00
committed by GitHub
parent 821f3765cc
commit 681d4c6758
2 changed files with 10 additions and 4 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 {