ComfyUI > Nodes > Primere nodes for ComfyUI > Primere Resolution Coordinator

ComfyUI Node: Primere Resolution Coordinator

Class Name

PrimereResolutionCoordinatorMPX

Category
Primere Nodes/Dashboard
Author
CosmicLaca (Account age: 3656days)
Extension
Primere nodes for ComfyUI
Latest Updated
2024-06-23
Github Stars
0.08K

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 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

Primere Resolution Coordinator Description

Manages and harmonizes resolution settings for multiple image processing tasks in ComfyUI based on specified MPX value.

Primere Resolution Coordinator:

The PrimereResolutionCoordinatorMPX node is designed to manage and coordinate the resolution settings of multiple image processing tasks within the ComfyUI framework. Its primary function is to ensure that the resolution of different images or tasks is harmonized according to a specified megapixel (MPX) value. This node is particularly useful when working with multiple images that need to be resized to a consistent resolution, either maintaining their aspect ratio or adjusting to match a reference image's dimensions. By automating the resolution adjustment process, the PrimereResolutionCoordinatorMPX node helps streamline workflows and ensures uniformity across various image outputs, which is essential for tasks such as batch processing, image comparison, and maintaining visual consistency in AI-generated art.

Primere Resolution Coordinator Input Parameters:

ref_width

The width of the reference image in pixels. This parameter is used to calculate the target resolution based on the specified megapixel value. Adjusting this value will directly impact the final resolution of the resized images. There is no specific minimum or maximum value, but it should be a positive integer.

ref_height

The height of the reference image in pixels. Similar to ref_width, this parameter is used in conjunction with the reference width to determine the target resolution. The value should be a positive integer and will affect the final dimensions of the resized images.

resize_to_mpx

The target resolution in megapixels (MPX) to which the images should be resized. This value determines the overall size of the output images. A higher value will result in larger images, while a lower value will produce smaller images. The value should be a positive floating-point number.

slave_width

The width of the secondary image in pixels. This parameter is used to calculate the resizing factor for the secondary image based on the target MPX value. It should be a positive integer.

slave_height

The height of the secondary image in pixels. This parameter works with slave_width to determine the resizing factor for the secondary image. It should be a positive integer.

keep_slave_ratio

A boolean parameter that determines whether the aspect ratio of the secondary image should be maintained during resizing. If set to True, the secondary image will be resized proportionally. If set to False, the secondary image will be resized to match the reference image's dimensions. The default value is True.

Primere Resolution Coordinator Output Parameters:

ref_width_resized

The resized width of the reference image in pixels. This output provides the new width after adjusting the image to the specified MPX value.

ref_height_resized

The resized height of the reference image in pixels. This output provides the new height after adjusting the image to the specified MPX value.

slave_width_resized

The resized width of the secondary image in pixels. This output provides the new width after adjusting the image based on the target MPX value and the keep_slave_ratio setting.

slave_height_resized

The resized height of the secondary image in pixels. This output provides the new height after adjusting the image based on the target MPX value and the keep_slave_ratio setting.

Primere Resolution Coordinator Usage Tips:

  • Ensure that the ref_width and ref_height parameters accurately reflect the dimensions of your reference image to achieve the desired resizing results.
  • Use the resize_to_mpx parameter to control the overall size of your output images. Adjust this value based on the level of detail and quality you require.
  • Set the keep_slave_ratio parameter to True if you want to maintain the aspect ratio of the secondary image, which is useful for preserving the original proportions of the image.

Primere Resolution Coordinator Common Errors and Solutions:

"Invalid reference image dimensions"

  • Explanation: This error occurs when the ref_width or ref_height parameters are set to non-positive values.
  • Solution: Ensure that both ref_width and ref_height are positive integers representing the dimensions of the reference image.

"Invalid target MPX value"

  • Explanation: This error occurs when the resize_to_mpx parameter is set to a non-positive value.
  • Solution: Set the resize_to_mpx parameter to a positive floating-point number that represents the desired resolution in megapixels.

"Invalid secondary image dimensions"

  • Explanation: This error occurs when the slave_width or slave_height parameters are set to non-positive values.
  • Solution: Ensure that both slave_width and slave_height are positive integers representing the dimensions of the secondary image.

Primere Resolution Coordinator 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.