Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > comfyui-obvpm > Optional Image (obvpm)

ComfyUI Node: Optional Image (obvpm)

Class Name

ImageOptionalGate (obvpm)

Category
obvpm/gates
Author
chanon (Account age: 5883days)
Extension
comfyui-obvpm
Latest Updated
2026-09-17
Github Stars
0.04K

How to Install comfyui-obvpm

Install this extension via the ComfyUI Manager by searching for comfyui-obvpm
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter comfyui-obvpm 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

Optional Image (obvpm) Description

Flexible image handling node for optional image presence in workflows, ensuring smooth processing and error prevention.

ImageOptionalGate (obvpm):

The ImageOptionalGate (obvpm) node is designed to handle image data in a flexible manner within a node-based workflow. Its primary function is to pass an image through the node if it is present, or to handle the absence of an image gracefully. This node is particularly useful in scenarios where the presence of an image is optional, allowing you to design workflows that can adapt to varying input conditions without causing errors or interruptions. By providing a mechanism to check for the presence of an image, the ImageOptionalGate helps streamline processes that involve conditional image processing, ensuring that downstream nodes receive the appropriate data or are informed of its absence.

ImageOptionalGate (obvpm) Input Parameters:

input

The input parameter is the image data that you wish to pass through the node. This parameter is optional, meaning that the node can function even if no image is provided. When an image is supplied, it is processed and passed to the output. If no image is provided, the node will handle this absence according to its internal logic, which typically involves setting a flag to indicate the lack of input. There are no specific minimum, maximum, or default values for this parameter, as it is designed to accept any image data type.

ImageOptionalGate (obvpm) Output Parameters:

image

The image output parameter provides the image data that was passed through the node. If an image was supplied to the input, this output will contain that image. If no image was provided, this output will typically be None, indicating the absence of image data. This output is crucial for downstream nodes that require image data to function correctly.

present

The present output parameter is a boolean flag that indicates whether an image was present at the input. It returns True if an image was provided and successfully passed through the node, and False if no image was present. This flag is useful for conditional logic in workflows, allowing you to make decisions based on the presence or absence of image data.

ImageOptionalGate (obvpm) Usage Tips:

  • Use the present output to drive conditional logic in your workflow, enabling nodes to react differently based on whether an image is available.
  • Combine the ImageOptionalGate with other nodes that handle optional data to create robust workflows that can adapt to varying input conditions without errors.

ImageOptionalGate (obvpm) Common Errors and Solutions:

Missing Image Input

  • Explanation: This error occurs when the node is expected to process an image, but no image is provided at the input.
  • Solution: Ensure that an image is connected to the input of the node if it is required for your workflow. Alternatively, adjust your workflow to handle cases where no image is present.

Unexpected Data Type

  • Explanation: This error happens when the input data is not of the expected image type.
  • Solution: Verify that the data connected to the input is indeed an image. Convert or preprocess the data to ensure it matches the expected type before connecting it to the node.

Optional Image (obvpm) Related Nodes

Go back to the extension to check out more related nodes.
comfyui-obvpm
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 Models, enabling artists to harness the latest AI tools to create incredible art.

Optional Image (obvpm)