ComfyUI  >  Nodes  >  ComfyUI >  Preview Image

ComfyUI Node: Preview Image

Class Name

PreviewImage

Category
image
Author
ComfyAnonymous (Account age: 598 days)
Extension
ComfyUI
Latest Updated
8/12/2024
Github Stars
45.9K

How to Install ComfyUI

Install this extension via the ComfyUI Manager by searching for  ComfyUI
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Preview Image Description

Generate temporary image previews for quick visualization without permanent saving, ideal for AI artists to check intermediate results efficiently.

Preview Image:

The PreviewImage node is designed to generate a temporary preview of an image, allowing you to quickly visualize the output without saving it permanently. This node is particularly useful for AI artists who need to frequently check intermediate results during the creative process. By creating a temporary image with a unique prefix and a low compression level, it ensures that the preview is generated swiftly and efficiently. The main goal of this node is to provide a quick and easy way to see the results of your image manipulations, helping you make informed decisions on the fly.

Preview Image Input Parameters:

images

The images parameter expects an input of type IMAGE. This parameter is essential as it provides the image data that will be used to generate the preview. The input should be a valid image format that the node can process. There are no specific minimum or maximum values for this parameter, but it must be a valid image file.

prompt

The prompt parameter is hidden and is used internally by the node. It is of type PROMPT and does not require any input from you. This parameter helps in managing additional metadata associated with the image.

extra_pnginfo

The extra_pnginfo parameter is also hidden and is of type EXTRA_PNGINFO. Similar to the prompt parameter, it is used internally to handle extra information embedded in PNG files. You do not need to provide any input for this parameter.

Preview Image Output Parameters:

output_image

The output_image parameter provides the generated preview image. This output is crucial as it allows you to visualize the temporary image created by the node. The preview image is typically in a format that can be easily displayed or further processed.

output_mask

The output_mask parameter provides a mask associated with the preview image. This mask can be useful for various image processing tasks, such as segmentation or blending. The mask is generated based on the alpha channel of the input image, if available.

Preview Image Usage Tips:

  • Use the PreviewImage node to quickly check the results of your image manipulations without saving the image permanently. This can save time and storage space during the creative process.
  • Combine the PreviewImage node with other image processing nodes to create a workflow that allows for rapid iteration and visualization of intermediate results.
  • Adjust the compression level if you need a faster preview generation, but keep in mind that lower compression may result in larger file sizes.

Preview Image Common Errors and Solutions:

"Invalid image format"

  • Explanation: The input image is in a format that is not supported by the node.
  • Solution: Ensure that the input image is in a valid format such as JPEG, PNG, or BMP. Avoid using formats like MPO that are excluded.

"Image size mismatch"

  • Explanation: The input images have different dimensions, which prevents the node from generating a consistent preview.
  • Solution: Make sure all input images have the same dimensions before feeding them into the node.

"Missing input image"

  • Explanation: The images parameter is not provided or is empty.
  • Solution: Ensure that you provide a valid image input to the images parameter. Check that the image file path is correct and the file is accessible.

Preview Image Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.