ComfyUI > Nodes > ComfyUI-Only > Workflow Image Loader (File)

ComfyUI Node: Workflow Image Loader (File)

Class Name

WorkflowImageFileLoader

Category
only/Image
Author
eric183 (Account age: 4090days)
Extension
ComfyUI-Only
Latest Updated
2025-08-23
Github Stars
0.07K

How to Install ComfyUI-Only

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

Workflow Image Loader (File) Description

Automates loading images and extracting embedded workflow data for AI art projects.

Workflow Image Loader (File):

The WorkflowImageFileLoader node is designed to streamline the process of loading image files and extracting embedded workflow information. This node is particularly beneficial for AI artists who work with complex workflows embedded within image files, as it automates the extraction and parsing of workflow data. By leveraging this node, you can efficiently retrieve and interpret workflow details such as prompts and checkpoint names directly from image files, facilitating a seamless integration into your creative process. The node's primary function is to read image files, convert them into a suitable format for further processing, and extract any embedded workflow JSON data, making it an essential tool for managing and utilizing workflow information in image-based projects.

Workflow Image Loader (File) Input Parameters:

image_file

The image_file parameter specifies the name of the image file you wish to load and process. This parameter is crucial as it determines which image will be read and analyzed for embedded workflow information. The image file should be located in the designated input directory, and the node will attempt to open and process this file to extract relevant data. There are no specific minimum or maximum values for this parameter, but it should be a valid image file name present in the input directory.

workflow_json

The workflow_json parameter allows you to manually input a workflow JSON string if the image lacks embedded workflow information. This optional parameter is useful when you have workflow data that is not stored within the image file itself but still needs to be processed alongside the image. The default value is an empty string, and it supports multiline input to accommodate complex JSON structures.

Workflow Image Loader (File) Output Parameters:

image

The image output parameter provides the loaded image in a format suitable for further processing within the ComfyUI environment. This output is essential for any subsequent image manipulation or analysis tasks you may wish to perform.

positive_prompt

The positive_prompt output contains the extracted positive prompt from the workflow data. This prompt is typically used to guide the AI in generating or modifying images according to specific creative directions.

filtered_positive_prompt

The filtered_positive_prompt output provides a refined version of the positive prompt, potentially removing any unnecessary or redundant elements to enhance clarity and focus.

negative_prompt

The negative_prompt output includes the extracted negative prompt, which serves to instruct the AI on what to avoid or exclude in the image generation process.

checkpoint_name

The checkpoint_name output reveals the name of the checkpoint used in the workflow, which is crucial for understanding the specific model or configuration applied during the image creation or modification process.

workflow_info

The workflow_info output offers a summary of the workflow extraction process, including any relevant details about the success or failure of parsing the workflow data.

workflow_json_out

The workflow_json_out output provides the raw workflow JSON string extracted from the image or manually inputted, allowing for further inspection or use in other applications.

Workflow Image Loader (File) Usage Tips:

  • Ensure that your image files are stored in the correct input directory to facilitate seamless loading and processing by the node.
  • Utilize the workflow_json parameter to manually input workflow data when dealing with images that do not contain embedded workflow information, ensuring that all necessary data is available for processing.
  • Regularly check the workflow_info output to verify the success of the workflow extraction process and to troubleshoot any issues that may arise.

Workflow Image Loader (File) Common Errors and Solutions:

解析workflow时出错: <error_message>

  • Explanation: This error occurs when there is an issue parsing the workflow data from the image file, possibly due to malformed JSON or missing information.
  • Solution: Verify that the image file contains valid workflow data and that the JSON structure is correctly formatted. If necessary, manually input the workflow JSON using the workflow_json parameter.

JSON格式错误: <error_message>

  • Explanation: This error indicates that the workflow JSON extracted from the image is not properly formatted, leading to parsing failures.
  • Solution: Inspect the workflow JSON for syntax errors or structural issues. Correct any mistakes and reattempt the extraction process. If the problem persists, consider manually inputting the corrected JSON data.

Workflow Image Loader (File) Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Only
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.