ComfyUI > Nodes > Image Filter > Image Filter

ComfyUI Node: Image Filter

Class Name

Image Filter

Category
image_filter
Author
chrisgoringe (Account age: 4350days)
Extension
Image Filter
Latest Updated
2025-04-01
Github Stars
0.04K

How to Install Image Filter

Install this extension via the ComfyUI Manager by searching for Image Filter
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Image Filter in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Image Filter Description

Enhance workflow by manually selecting images based on criteria, improving efficiency and effectiveness.

Image Filter:

The Image Filter node is designed to enhance your workflow by allowing you to pause and make decisions about which images to pass on to subsequent stages. This node is particularly useful in scenarios where you need to manually select images based on specific criteria or preferences, ensuring that only the most suitable images continue through the process. By providing a user-friendly interface, the Image Filter node simplifies the decision-making process, making it accessible even to those without a technical background. It offers a streamlined approach to image selection, improving the efficiency and effectiveness of your workflow.

Image Filter Input Parameters:

images

This parameter accepts a collection of images that you want to filter. The images are processed to determine which ones should be passed on based on your selection criteria. There is no explicit minimum or maximum value for the number of images, but the default behavior is to process all provided images.

timeout

The timeout parameter specifies the maximum time, in seconds, that the node will wait for a response during the image selection process. The default value is 60 seconds, but you can adjust it to suit your needs. A longer timeout allows more time for decision-making, while a shorter timeout speeds up the process.

ontimeout

This parameter determines the action to take if the timeout is reached before a selection is made. Options include "send none," "send all," "send first," and "send last." Each option dictates a different course of action, allowing you to control the outcome in case of a timeout.

latents

Latents are optional data that can be provided alongside images. If included, they will be output along with the selected images. This parameter is useful for workflows that involve latent space manipulation or analysis.

masks

Masks are optional overlays that can be applied to images. If provided, they will be output with the selected images, allowing for further processing or analysis of specific image regions.

tip

This optional parameter allows you to display a custom message in a popup window during the image selection process. It can be used to provide additional context or instructions to the user.

extra1, extra2, extra3

These optional string parameters allow you to include additional information or metadata with the images. They can be used to store extra data that may be relevant to your workflow.

Image Filter Output Parameters:

images

The images output parameter returns the selected images after the filtering process. These are the images that have been chosen to continue through the workflow based on your criteria.

latents

If latents were provided as input, this output parameter returns the corresponding latents for the selected images. This allows for further processing or analysis of the latent data.

masks

If masks were provided as input, this output parameter returns the corresponding masks for the selected images. This is useful for workflows that involve mask-based image processing.

extra1, extra2, extra3

These output parameters return the additional information or metadata that was included with the images. They provide context or supplementary data that may be useful for subsequent stages of the workflow.

indexes

The indexes output parameter provides a list of indices corresponding to the selected images. This information can be used to track which images were chosen and to maintain consistency across different stages of the workflow.

Image Filter Usage Tips:

  • Use the timeout parameter to control the duration of the image selection process, ensuring it aligns with your workflow's pace.
  • Leverage the ontimeout options to define fallback actions, allowing your workflow to continue smoothly even if a selection is not made in time.
  • Utilize the tip parameter to provide guidance or context to users during the image selection process, enhancing the decision-making experience.

Image Filter Common Errors and Solutions:

InterruptProcessingException

  • Explanation: This error occurs when no images are selected, and the ontimeout parameter is set to "send none."
  • Solution: Ensure that at least one image is selected or adjust the ontimeout parameter to a different option, such as "send all" or "send first."

FileNotFoundError

  • Explanation: This error may occur if the node attempts to load an image file that does not exist.
  • Solution: Verify that the image files are correctly saved and accessible. Check the file paths and ensure that the images are available in the expected directory.

Image Filter Related Nodes

Go back to the extension to check out more related nodes.
Image Filter
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.