Visit ComfyUI Online for ready-to-use ComfyUI environment
Node for generating and managing preview images in Primere framework, streamlining visual content creation and iteration.
PrimerePreviewImage is a node designed to generate and manage preview images within the Primere framework. This node is essential for creating visual representations of your AI-generated content, allowing you to quickly assess and refine your work. It handles the resizing and saving of preview images, ensuring they meet specified dimensions and quality settings. By integrating this node into your workflow, you can streamline the process of generating previews, making it easier to visualize and iterate on your creative projects. The node supports various save modes, including overwriting existing files, keeping original files, and joining images either horizontally or vertically, providing flexibility in how previews are managed and stored.
This parameter specifies the source image file that will be used to generate the preview. It is crucial as it defines the initial content that will be processed and resized. The source image should be in a format supported by the PIL library, such as JPEG or PNG. There are no specific minimum or maximum values for this parameter, but the quality and resolution of the source image will impact the final preview.
This parameter is a dictionary containing various settings for the preview image, including maxWidth
, maxHeight
, PreviewTargetOriginal
, SaveImageName
, extension
, and PrwSaveMode
. These settings control the dimensions, file naming, and saving behavior of the preview image. For example, maxWidth
and maxHeight
define the maximum dimensions of the resized preview, while PrwSaveMode
determines whether the preview will overwrite existing files, keep the original, or join with existing images. The default values and options for these settings depend on the specific use case and desired output.
This output parameter represents the resized preview image. It is the result of processing the source image according to the specified PREVIEW_DATA
settings. The resized image maintains the aspect ratio of the original while fitting within the defined maximum dimensions. This output is crucial for visualizing the final appearance of your AI-generated content and making necessary adjustments.
This output parameter provides a response message indicating the result of the save operation. It includes information about the save mode used and the target file path. This message helps you understand whether the preview image was successfully saved, overwritten, or joined with an existing image, and provides feedback on the file management process.
maxWidth
and maxHeight
settings in PREVIEW_DATA
to match the desired dimensions of your preview image, keeping in mind the aspect ratio.PrwSaveMode
setting to control how the preview image is saved, choosing between overwrite, keep, or join modes based on your needs.PreviewSaveResponse
to confirm that the preview image has been saved correctly and to understand the save operation's outcome.PrwSaveMode
.PrwSaveMode
is set to one of the supported values: "Overwrite", "Keep", "Join horizontal", or "Join vertical".PREVIEW_DATA
are correct and do not contain invalid characters.© Copyright 2024 RunComfy. All Rights Reserved.