ComfyUI  >  Nodes  >  Primere nodes for ComfyUI >  Primere Image Preview and Save as...

ComfyUI Node: Primere Image Preview and Save as...

Class Name

PrimerePreviewImage

Category
Primere Nodes/Outputs
Author
CosmicLaca (Account age: 3656 days)
Extension
Primere nodes for ComfyUI
Latest Updated
6/23/2024
Github Stars
0.1K

How to Install Primere nodes for ComfyUI

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

Primere Image Preview and Save as... Description

Node for generating and managing preview images in Primere framework, streamlining visual content creation and iteration.

Primere Image Preview and Save as...:

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.

Primere Image Preview and Save as... Input Parameters:

IMG_SOURCE

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.

PREVIEW_DATA

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.

Primere Image Preview and Save as... Output Parameters:

prw_img_resized

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.

PreviewSaveResponse

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.

Primere Image Preview and Save as... Usage Tips:

  • Ensure that your source image (IMG_SOURCE) is of high quality to achieve the best results in the preview.
  • Adjust the maxWidth and maxHeight settings in PREVIEW_DATA to match the desired dimensions of your preview image, keeping in mind the aspect ratio.
  • Use the PrwSaveMode setting to control how the preview image is saved, choosing between overwrite, keep, or join modes based on your needs.
  • Regularly check the PreviewSaveResponse to confirm that the preview image has been saved correctly and to understand the save operation's outcome.

Primere Image Preview and Save as... Common Errors and Solutions:

[Primere] ERROR: does not allow image batches.

  • Explanation: This error occurs when multiple images are provided as input, but the node only supports single image processing.
  • Solution: Ensure that you are providing a single image file as the source input. If you need to process multiple images, handle them individually in separate node executions.

File not found error

  • Explanation: This error indicates that the specified source image file (IMG_SOURCE) could not be found.
  • Solution: Verify that the file path provided in IMG_SOURCE is correct and that the file exists at the specified location.

Invalid save mode

  • Explanation: This error occurs when an unsupported save mode is specified in PrwSaveMode.
  • Solution: Ensure that PrwSaveMode is set to one of the supported values: "Overwrite", "Keep", "Join horizontal", or "Join vertical".

Image save failed

  • Explanation: This error indicates that the node was unable to save the preview image to the specified target location.
  • Solution: Check the target directory's permissions and ensure that there is enough disk space. Verify that the file path and name in PREVIEW_DATA are correct and do not contain invalid characters.

Primere Image Preview and Save as... Related Nodes

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