Skip to content
Node packVerifiedExternal
Open source

cg-image-filter

Maintainer@chrisgoringeBgrade

Package profile

Status
Verified
Publisher
@chrisgoringe
Source
GitHub
Stars
135

README

CG Image Filter


Problems?

If you have issues after an update, try removing the filter node and then adding it back before reporting it as a bug.

If you use the String to Int or String to Float nodes and get an error reporting that the nodes don't exist, delete them and add them again. Due to a conflict in naming with other popula node packs they have had an id change.

Please read how to report a bug well before reporting a bug. I'm far, far more likely to be able to fix things if you give me the information requested.


Changes to Mask Image Filter

Because Comfy has changed the way that the Mask Editor works, the Mask Image Filter has had to be modified.

  • Use the Save and Cancel buttons in the editor to save or cancel
  • The extra values are no longer editable

If you used the extras, the best approach is to chain it with a Text Image Filter like this: chain


Introduction

A set of nodes designed to pause execution of the workflow to allow you to make selections and/or edits before continuing. There's an example workflow that illustrates all of them at the end.

There are also some helper nodes.

Examples of what you might do with them

  • Generate an image or batch, and select which ones you want before spending the time upscaling
  • Generate an image and pick part of it to inpaint all in one go (the example workflow below does this)
  • Edit auto-generated captions before saving them
  • Iterate through a folder of images, picking a masked area to inpaint (and the inpainting prompt) for each
  • you ideas here...

Example workflow

If you prefer trying a workflow to reading docs, use of the nodes is illustrated in this blob (drag the image into Comfy):

or jump down to example workflows for more examples.

Recent Changes

New in 1.9

  • Custom audio
  • triple-click in text field in TextImageFilter to insert last sent text
  • added option in Mask Image Filter to always start from last output
  • fixed Mask Image Filter fingerprinting to prevent downstream execution when sending the same output as a previous run (h/t Reber01Good)

New in 1.8

  • Fix for Mask Image Filter when using more than one in a workflow
  • More reliable flash on background tab
  • Better handling of filters in subgraphs
  • New option - selecting image unselects others

New in 1.7

  • Options for Mask Image Filter behaviour when no inputs are changed
  • Fixed several bugs in Mask Image Filter
  • Updated to use new Comfy UI node specification
  • Added typing shortcuts

For older changes see Change History


Image Filter

The image filter node pauses execution of the workflow while you choose which, if any, of the images produced, you want to progress.

Insert it like this:

image

When you run the workflow, and get to this point, a popup window will appear displaying the image(s) for you to select which, if any, you want to progress:

image

Click the images that you want to keep (their border will turn green) and then click 'Send' to continue the workflow. If you don't want to keep any of the images, click 'Cancel' (or press 'escape') to terminate the workflow.

The node also has a timeout specified, and a countdown is shown on the left hand side. If you don't Send or Cancel before the timeout, the node will either cance

Nodes in this pack

12 nodes
  • Any List to String
  • Batch from Image List
  • cg_String to Float
  • cg_String to Int
  • Image Filter
  • Image List From Batch
  • Mask Image Filter
  • Masked Section
  • Pick from List
  • Split String by Commas
  • StringToStringList
  • Text Image Filter

Related resources

27 connections
Used bySimple Text2Image Workflow for Beginners — v1.1Used byWan 2.2 Long video via multi-step actions — v1.1Used byCombined workflow (ComfyUI txt2img, Wildcards, LLMs/Ollama, Pony, SDXL, Illustrious, Flux, Qwen, Z-Image, Anima, Flux 2 Klein, Krea 2 Turbo) — v4.1 (QoL)Used byDaxamur's WAN 2.2 Workflows v1.2.1 (FLF2V | T2V | I2V | GGUF | Easy Bypass | Experimental True Endless Generation) — FLF2V v1.2.1Used byCombined workflow (ComfyUI txt2img, Wildcards, LLMs/Ollama, Pony, SDXL, Illustrious, Flux, Qwen, Z-Image, Anima, Flux 2 Klein, Krea 2 Turbo) — v8.2Used byKiko WanWrapper — v4.3-CausVidUsed byCombined workflow (ComfyUI txt2img, Wildcards, LLMs/Ollama, Pony, SDXL, Illustrious, Flux, Qwen, Z-Image, Anima, Flux 2 Klein, Krea 2 Turbo) — v2Used byTheDirector — v2.1Used byCombined workflow (ComfyUI txt2img, Wildcards, LLMs/Ollama, Pony, SDXL, Illustrious, Flux, Qwen, Z-Image, Anima, Flux 2 Klein, Krea 2 Turbo) — v5Used byCombined workflow (ComfyUI txt2img, Wildcards, LLMs/Ollama, Pony, SDXL, Illustrious, Flux, Qwen, Z-Image, Anima, Flux 2 Klein, Krea 2 Turbo) — v8.3 — v9Used byCombined workflow (ComfyUI txt2img, Wildcards, LLMs/Ollama, Pony, SDXL, Illustrious, Flux, Qwen, Z-Image, Anima, Flux 2 Klein, Krea 2 Turbo) — v3.1 (Hotfix)Used byCombined workflow (ComfyUI txt2img, Wildcards, LLMs/Ollama, Pony, SDXL, Illustrious, Flux, Qwen, Z-Image, Anima, Flux 2 Klein, Krea 2 Turbo) — 20251214Used byCombined workflow (ComfyUI txt2img, Wildcards, LLMs/Ollama, Pony, SDXL, Illustrious, Flux, Qwen, Z-Image, Anima, Flux 2 Klein, Krea 2 Turbo) — v6Used byCombined workflow (ComfyUI txt2img, Wildcards, LLMs/Ollama, Pony, SDXL, Illustrious, Flux, Qwen, Z-Image, Anima, Flux 2 Klein, Krea 2 Turbo) — v8.1Used byCombined workflow (ComfyUI txt2img, Wildcards, LLMs/Ollama, Pony, SDXL, Illustrious, Flux, Qwen, Z-Image, Anima, Flux 2 Klein, Krea 2 Turbo) — v8.3 — v9.2Used byCombined workflow (ComfyUI txt2img, Wildcards, LLMs/Ollama, Pony, SDXL, Illustrious, Flux, Qwen, Z-Image, Anima, Flux 2 Klein, Krea 2 Turbo) — 20251122Used bySimpler Combined WorkflowUsed byCombined workflow (ComfyUI txt2img, Wildcards, LLMs/Ollama, Pony, SDXL, Illustrious, Flux, Qwen, Z-Image, Anima, Flux 2 Klein, Krea 2 Turbo) — v7Used byLooping detailer / inpaint / fixer — v1.0Used byWan 2.2 Long video via multi-step actions — v1.0Used byCombined workflow (ComfyUI txt2img, Wildcards, LLMs/Ollama, Pony, SDXL, Illustrious, Flux, Qwen, Z-Image, Anima, Flux 2 Klein, Krea 2 Turbo) — v8.3 — v9.1 fixUsed byCombined workflow (ComfyUI txt2img, Wildcards, LLMs/Ollama, Pony, SDXL, Illustrious, Flux, Qwen, Z-Image, Anima, Flux 2 Klein, Krea 2 Turbo) — v8Used byCombined workflow (ComfyUI txt2img, Wildcards, LLMs/Ollama, Pony, SDXL, Illustrious, Flux, Qwen, Z-Image, Anima, Flux 2 Klein, Krea 2 Turbo) — v3Used bySimpleText2Draw2Real — v1.0Used byCombined workflow (ComfyUI txt2img, Wildcards, LLMs/Ollama, Pony, SDXL, Illustrious, Flux, Qwen, Z-Image, Anima, Flux 2 Klein, Krea 2 Turbo) — v1Used byCombined workflow (ComfyUI txt2img, Wildcards, LLMs/Ollama, Pony, SDXL, Illustrious, Flux, Qwen, Z-Image, Anima, Flux 2 Klein, Krea 2 Turbo) — v8.3Used byZ-Image Turbo - Simple DatAss Workflow — v1.0

Sources

3 sources
GitHubSourceVersion 1602dbe2c663b9defd02e00fe6371e7c6af3ab99
github.com/chrisgoringe/cg-image-filter

Verified Oct 24

GitHubSource
github.com/chrisgoringe/cg-image-filter

Verified Oct 20

Source excerpts

1 excerpt

Source context: Repo chrisgoringe/cg-image-filter