Visit ComfyUI Online for ready-to-use ComfyUI environment
Manages and harmonizes resolution settings for multiple image processing tasks in ComfyUI based on specified MPX value.
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.
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.
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.
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.
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.
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.
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
.
The resized width of the reference image in pixels. This output provides the new width after adjusting the image to the specified MPX value.
The resized height of the reference image in pixels. This output provides the new height after adjusting the image to the specified MPX value.
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.
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.
ref_width
and ref_height
parameters accurately reflect the dimensions of your reference image to achieve the desired resizing results.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.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.ref_width
or ref_height
parameters are set to non-positive values.ref_width
and ref_height
are positive integers representing the dimensions of the reference image.resize_to_mpx
parameter is set to a non-positive value.resize_to_mpx
parameter to a positive floating-point number that represents the desired resolution in megapixels.slave_width
or slave_height
parameters are set to non-positive values.slave_width
and slave_height
are positive integers representing the dimensions of the secondary image.© Copyright 2024 RunComfy. All Rights Reserved.