ComfyUI > Nodes > Primere nodes for ComfyUI > Primere Resolution Multiplier

ComfyUI Node: Primere Resolution Multiplier

Class Name

PrimereResolutionMultiplier

Category
Primere Nodes/Deprecated
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 Multiplier Description

Adjust image resolution with multiplier for precise resizing, ideal for AI artists and various applications.

Primere Resolution Multiplier:

The PrimereResolutionMultiplier node is designed to adjust the resolution of images by applying a multiplier to the original dimensions. This node is particularly useful for AI artists who need to scale their images up or down while maintaining the aspect ratio or adjusting it according to specific requirements. By leveraging this node, you can ensure that your images are resized accurately and efficiently, which is essential for various artistic and technical applications. The node calculates the new dimensions based on a given multiplier, allowing for precise control over the final resolution. This can be especially beneficial when preparing images for different display formats or optimizing them for performance without compromising on quality.

Primere Resolution Multiplier Input Parameters:

ref_width

The width of the reference image in pixels. This parameter is crucial as it serves as the base width from which the new dimensions will be calculated. The value should be a positive integer representing the width in pixels.

ref_height

The height of the reference image in pixels. Similar to the ref_width, this parameter is essential for determining the base height for the resizing calculations. The value should be a positive integer representing the height in pixels.

resize_to_mpx

The target resolution in megapixels (MPX) to which the image should be resized. This parameter defines the desired resolution and directly influences the scaling factor applied to the original dimensions. The value should be a positive floating-point number representing the target resolution in MPX.

keep_slave_ratio

A boolean parameter that determines whether the aspect ratio of the slave image should be maintained during resizing. If set to True, the aspect ratio will be preserved; if False, the slave image will be resized to match the reference image's dimensions. This parameter is crucial for ensuring that the resized image meets specific aspect ratio requirements.

slave_width

The width of the slave image in pixels. This parameter is used in conjunction with the keep_slave_ratio parameter to determine the new dimensions of the slave image. The value should be a positive integer representing the width in pixels.

slave_height

The height of the slave image in pixels. Similar to the slave_width, this parameter is used to calculate the new dimensions of the slave image based on the specified resizing rules. The value should be a positive integer representing the height in pixels.

Primere Resolution Multiplier Output Parameters:

ref_width_resized

The new width of the reference image after applying the resolution multiplier. This output provides the resized width in pixels, ensuring that the image meets the target resolution requirements.

ref_height_resized

The new height of the reference image after applying the resolution multiplier. This output provides the resized height in pixels, ensuring that the image meets the target resolution requirements.

slave_width_resized

The new width of the slave image after applying the resolution multiplier and considering the aspect ratio settings. This output provides the resized width in pixels, ensuring that the image meets the target resolution and aspect ratio requirements.

slave_height_resized

The new height of the slave image after applying the resolution multiplier and considering the aspect ratio settings. This output provides the resized height in pixels, ensuring that the image meets the target resolution and aspect ratio requirements.

Primere Resolution Multiplier Usage Tips:

  • Ensure that the ref_width and ref_height parameters accurately represent the dimensions of your reference image to achieve precise resizing results.
  • Use the resize_to_mpx parameter to define the target resolution in megapixels, which helps in maintaining the desired image quality.
  • Set the keep_slave_ratio parameter to True if you need to preserve the aspect ratio of the slave image, which is useful for maintaining visual consistency.
  • Verify the slave_width and slave_height parameters to ensure they match the dimensions of the slave image for accurate resizing.

Primere Resolution Multiplier Common Errors and Solutions:

Invalid reference dimensions

  • Explanation: 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 in pixels.

Invalid target resolution

  • Explanation: 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 representing the target resolution in megapixels.

Invalid slave dimensions

  • Explanation: 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 slave image in pixels.

Aspect ratio mismatch

  • Explanation: The keep_slave_ratio parameter is set to True, but the slave image dimensions do not match the reference image's aspect ratio.
  • Solution: Verify the dimensions of the slave image and adjust them to match the reference image's aspect ratio or set keep_slave_ratio to False if aspect ratio preservation is not required.

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