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
PreviewImagenode 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
PreviewImagenode 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
imagesparameter is not provided or is empty. - Solution: Ensure that you provide a valid image input to the
imagesparameter. Check that the image file path is correct and the file is accessible.
