Visit ComfyUI Online for ready-to-use ComfyUI environment
Adjust image resolution with MPX-based multiplier for AI artists, maintaining aspect ratio and quality efficiently.
PrimereResolutionMultiplierMPX is a powerful node designed to adjust the resolution of images by applying a multiplier based on megapixels (MPX). This node is particularly useful for AI artists who need to upscale or downscale images while maintaining a specific resolution target. By leveraging mathematical calculations, it ensures that the resized images retain their aspect ratio and quality. The primary goal of this node is to provide a flexible and efficient way to manage image resolutions, making it easier to achieve the desired output size without compromising on detail or clarity.
The width parameter specifies the initial width of the image in pixels. This value is used as a reference point for calculating the new dimensions based on the desired megapixel target. The width directly impacts the final resolution of the image.
The height parameter specifies the initial height of the image in pixels. Similar to the width, this value is used to determine the new dimensions after applying the resolution multiplier. The height is crucial for maintaining the aspect ratio of the image.
The use_multiplier parameter is a boolean flag that indicates whether the resolution multiplier should be applied. When set to true, the node will adjust the image size based on the specified megapixel target. If false, the image dimensions remain unchanged. The default value is typically true.
The upscale_to_mpx parameter defines the target resolution in megapixels. This value determines the new size of the image after applying the multiplier. It is essential for achieving the desired level of detail and clarity in the output image. The value should be specified in megapixels (e.g., 1.05 for 1.05 MPX).
The triggered_prescale parameter is a boolean flag that indicates whether a pre-scaling operation should be triggered before applying the resolution multiplier. This can be useful for certain workflows where an initial scaling step is required. The default value is typically false.
The image parameter accepts the input image that needs to be resized. This parameter is essential as it provides the actual image data that will be processed by the node. The image should be in a compatible format for the node to function correctly.
The area_trigger_mpx parameter specifies the area in megapixels that triggers a specific scaling operation. This value is used in conjunction with the area_target_mpx parameter to determine if the image should be pre-scaled. The default value is typically 0.60 MPX.
The area_target_mpx parameter defines the target area in megapixels for the pre-scaling operation. If the image's area exceeds the area_trigger_mpx value, it will be scaled to this target area before applying the resolution multiplier. The default value is typically 1.05 MPX.
The upscale_model parameter specifies the model to be used for the upscaling operation. This can be set to different models depending on the desired quality and performance. Common options include 'None' for no specific model or other model names as required.
The upscale_method parameter defines the method to be used for the upscaling operation. Common methods include 'bicubic', 'bilinear', and other interpolation techniques. The choice of method affects the quality and speed of the upscaling process. The default value is typically 'bicubic'.
The resized_image parameter provides the output image after applying the resolution multiplier. This image will have the new dimensions based on the specified megapixel target and will maintain the aspect ratio and quality of the original image.
© Copyright 2024 RunComfy. All Rights Reserved.