comfyui-deploy
Run ComfyUI Easily with InstaSD
Skip the complex setup. InstaSD helps creative professionals build workflows and deploy them to the world:
- One-click deployment
- Any model, any node
- Powerful GPUs for rapid iteration
Available Nodes
ComfyDeployOutputImage
ComfyDeployOutputImage Node Documentation
Overview
The ComfyDeployOutputImage node is an integral part of the ComfyDeploy platform, specifically designed for saving images generated in ComfyUI workflows. This node takes generated image data as input and saves it to a designated output directory in the specified format. Through its customizable options, users can control the output image's format, quality, and filename configuration, making it a versatile tool for managing output in generative workflows.
Functionality
The primary function of the ComfyDeployOutputImage node is to save images generated by ComfyUI workflows to a specific directory determined by the ComfyDeploy platform. It supports various image formats and allows customization in terms of quality and naming conventions.
Inputs
The node accepts the following inputs:
-
Images: The images generated by the workflow that need to be saved. This is a required input.
-
Filename Prefix: Specifies the prefix for the output filename. This can include formatting information such as date or dimensions, allowing for dynamic naming. The default prefix is "ComfyUI". This is a required input.
-
File Type: Defines the format in which the images will be saved. Supported formats include PNG, JPG, and WebP, with WebP as the default choice. This is a required input.
-
Quality: Sets the quality of the output image. For JPG and WebP formats, users can define a quality level from 1 to 100, with a default value of 80. This is a required input.
-
Output ID: An optional identifier for organizing and referencing the output images, with a default value of "output_images".
-
Prompt: Hidden input that allows additional metadata related to the image prompt to be saved.
-
Extra PNG Info: Hidden input for adding extra information in the image's PNG metadata.
Outputs
The ComfyDeployOutputImage node does not produce explicit outputs that connect to other nodes, but it saves the images to the specified directory and provides metadata about each saved image, which includes:
- Filename
- Subfolder
- Type (indicating output type)
- Output ID
This metadata can be used for tracking and managing saved images.
Use in ComfyUI Workflows
In ComfyUI workflows, the ComfyDeployOutputImage node is used at the end of a generative process to persistently store the image output. Its ability to handle multiple image formats and quality settings makes it adaptable for various use cases, from high-quality final outputs to preview versions intended for quick sharing or iteration. This node's configuration options allow for efficient integration in workflows where image output management and metadata inclusion are critical.
Special Features and Considerations
-
Dynamic Filename Generation: One of the standout features of the ComfyDeployOutputImage node is its ability to dynamically generate filenames based on parameters like date and image dimensions, promoting organized and context-aware file storage.
-
Metadata Handling: The node supports the inclusion of prompts and extra PNG metadata, enabling detailed documentation of the generative process and facilitating traceability and reproduction of results.
-
Format and Quality Flexibility: By supporting multiple formats and quality settings, the node can be tailored to suit different needs, such as optimizing for either quality or file size.
-
Integration within ComfyDeploy: The node is specifically designed to work within the ComfyDeploy ecosystem, ensuring seamless functionality when deploying workflows across different environments.
In summary, the ComfyDeployOutputImage node is a robust tool for handling image output within ComfyUI, offering key features that enhance workflow efficiency and output management.