Resolution Selector Extended:
The ResolutionSelectorExtended node is a utility designed to help you calculate the optimal width and height for an image based on a specified aspect ratio and a target megapixel count. This node is particularly useful when setting up dimensions for an Empty Latent Image, ensuring that the resulting image meets your desired specifications while maintaining a consistent aspect ratio. By automating the calculation of dimensions, this node simplifies the process of preparing images for further processing or rendering, saving you time and effort. Its primary goal is to provide a straightforward method for determining image resolution, making it an essential tool for AI artists who need precise control over image dimensions without delving into complex calculations.
Resolution Selector Extended Input Parameters:
aspect_ratio
The aspect_ratio parameter allows you to specify the desired aspect ratio for the output dimensions. This is crucial for maintaining the visual proportions of your image. The available options include predefined aspect ratios, with the default being AspectRatio.SQUARE. This parameter ensures that the width and height are calculated to fit the chosen aspect ratio, providing consistency in your image outputs.
megapixels
The megapixels parameter sets the target total megapixels for the image. It determines the overall size of the image in terms of pixel count, with a default value of 1.0 megapixels, which is approximately equivalent to a 1024×1024 resolution for a square image. You can adjust this value between 0.1 and 16.0 megapixels, allowing for flexibility in image size while ensuring that the resolution meets your specific needs.
multiple
The multiple parameter specifies the nearest multiple to which the calculated resolution should be adjusted. This helps in aligning the resolution to specific increments, which can be important for compatibility with certain processing tools or workflows. The default value is 8, with a range from 8 to 128, and adjustments can be made in steps of 4. This parameter ensures that the resolution is both practical and efficient for further processing.
minimum
The minimum parameter sets the minimum resolution for any side of the image. This ensures that the image dimensions do not fall below a certain threshold, which can be important for maintaining image quality and detail. The default minimum resolution is 256 pixels, with a range from 32 to 4096 pixels, adjustable in steps of 32. This parameter provides a safeguard against producing images that are too small for your intended use.
Resolution Selector Extended Output Parameters:
width
The width output parameter represents the calculated width of the image based on the specified aspect ratio and megapixel target. This value is crucial for determining the horizontal dimension of your image, ensuring it aligns with your desired specifications.
height
The height output parameter represents the calculated height of the image, complementing the width to form the complete resolution. This value ensures that the vertical dimension of your image is consistent with the aspect ratio and megapixel target, providing a balanced and proportionate output.
Resolution Selector Extended Usage Tips:
- To achieve a specific image size, adjust the
megapixelsparameter while keeping theaspect_ratioconsistent with your desired proportions. - Use the
multipleparameter to ensure that the resolution aligns with specific increments, which can be beneficial for compatibility with certain tools or workflows.
Resolution Selector Extended Common Errors and Solutions:
Invalid aspect ratio selection
- Explanation: This error occurs when an unsupported aspect ratio is selected.
- Solution: Ensure that you select a valid aspect ratio from the available options provided by the node.
Megapixel value out of range
- Explanation: This error arises when the
megapixelsparameter is set outside the allowed range of 0.1 to 16.0. - Solution: Adjust the
megapixelsvalue to fall within the specified range to avoid this error.
Resolution below minimum threshold
- Explanation: This error happens when the calculated resolution is below the specified
minimumparameter. - Solution: Increase the
minimumparameter or adjust themegapixelsandaspect_ratioto ensure the resolution meets the minimum requirement.
