From 78635294ceb705cdc0e61e055e81892f600cc179 Mon Sep 17 00:00:00 2001 From: Terry Jia Date: Sat, 14 Feb 2026 03:55:36 -0500 Subject: [PATCH] feat: add hideOutputImages flag for nodes with custom preview (#8857) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary Prerequisite for upcoming native color correction nodes (ColorCorrect, ColorBalance, ColorCurves) which render their own WebGL preview and need to suppress the default output image display while keeping data in the store for downstream nodes. ## Screenshots (if applicable) before image after image ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-8857-feat-add-hideOutputImages-flag-for-nodes-with-custom-preview-3076d73d365081a2aa55d34280601b47) by [Unito](https://www.unito.io) Co-authored-by: Alexander Brown --- src/renderer/extensions/vueNodes/components/LGraphNode.vue | 3 ++- src/types/litegraph-augmentation.d.ts | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) 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 */