diff --git a/src/renderer/extensions/vueNodes/components/LGraphNode.vue b/src/renderer/extensions/vueNodes/components/LGraphNode.vue index 2a474defa4..aaa2dd01ef 100644 --- a/src/renderer/extensions/vueNodes/components/LGraphNode.vue +++ b/src/renderer/extensions/vueNodes/components/LGraphNode.vue @@ -656,7 +656,8 @@ const nodeMedia = computed(() => { const newOutputs = nodeOutputs.nodeOutputs[nodeOutputLocatorId.value] const node = lgraphNode.value - if (!node || !newOutputs?.images?.length) return undefined + if (!node || !newOutputs?.images?.length || node.hideOutputImages) + return undefined const urls = nodeOutputs.getNodeImageUrls(node) if (!urls?.length) return undefined diff --git a/src/types/litegraph-augmentation.d.ts b/src/types/litegraph-augmentation.d.ts index 163e98ac5b..5900fa5c64 100644 --- a/src/types/litegraph-augmentation.d.ts +++ b/src/types/litegraph-augmentation.d.ts @@ -177,6 +177,8 @@ declare module '@/lib/litegraph/src/litegraph' { isLoading?: boolean /** The content type of the node's preview media */ previewMediaType?: 'image' | 'video' | 'audio' | 'model' + /** If true, output images are stored but not rendered below the node */ + hideOutputImages?: boolean preview: string[] /** Index of the currently selected image on a multi-image node such as Preview Image */