mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-01 13:59:54 +00:00
Fix animated webp output preview (#2897)
This commit is contained in:
@@ -394,7 +394,12 @@ export const useLitegraphService = () => {
|
||||
if (isNewOutput || isNewPreview) {
|
||||
this.animatedImages = output?.animated?.find(Boolean)
|
||||
|
||||
if (this.animatedImages || isVideoNode(this)) {
|
||||
const isAnimatedWebp =
|
||||
this.animatedImages &&
|
||||
output.images.some((img) => img.filename?.includes('webp'))
|
||||
const isVideo =
|
||||
(this.animatedImages && !isAnimatedWebp) || isVideoNode(this)
|
||||
if (isVideo) {
|
||||
useNodeVideo(this).showPreview()
|
||||
} else {
|
||||
useNodeImage(this).showPreview()
|
||||
|
||||
Reference in New Issue
Block a user