Image Params:
The Image Params node is designed to facilitate the configuration of image dimensions and processing parameters in a flexible and user-friendly manner. It allows you to define the base size of an image, select an aspect ratio, and choose between portrait or landscape orientation. Additionally, it provides options for high-resolution scaling and batch processing, making it a versatile tool for generating images with specific requirements. By offering a range of customizable settings, this node empowers you to tailor image outputs to meet your artistic vision, ensuring that the final results align with your creative goals.
Image Params Input Parameters:
base
The base parameter sets the foundational size for the image, determining its initial dimensions before any scaling or ratio adjustments. It accepts integer values ranging from 128 to 4096, with a default of 768, and increments in steps of 128. This parameter is crucial as it influences the overall resolution and detail of the generated image.
ratio
The ratio parameter allows you to select the aspect ratio of the image from predefined options such as "1:1", "5:4", "4:3", "3:2", "16:9", "2:1", "21:9", and "32:9". This choice affects the proportional relationship between the width and height of the image, enabling you to create images that fit specific compositional needs.
orientation
The orientation parameter is a boolean setting that determines whether the image is in portrait or landscape mode. By default, it is set to False, indicating landscape orientation. When set to True, the image is oriented in portrait mode. This parameter helps in aligning the image's layout with your intended presentation style.
hires
The hires parameter specifies the high-resolution scaling factor, allowing you to enhance the image's detail and clarity. It accepts float values between 1 and 8, with a default of 2.0, and increments in steps of 0.25. This parameter is essential for producing high-quality images, especially when fine details are important.
batch
The batch parameter defines the number of images to be processed simultaneously, supporting integer values from 1 to 64, with a default of 1. This setting is particularly useful for batch processing, enabling you to generate multiple images in one go, thereby improving efficiency and productivity.
Image Params Output Parameters:
_
The output parameter _ is a tuple containing five elements: width, height, high-resolution ratio, batch size, and megapixels. Each element provides specific information about the processed image. The width and height indicate the final dimensions of the image, adjusted according to the selected base size and aspect ratio. The high-resolution ratio reflects the scaling factor applied to enhance image detail. The batch size denotes the number of images processed simultaneously, and the megapixels value represents the total pixel count of the image, offering insight into its resolution and quality.
Image Params Usage Tips:
- To achieve optimal image quality, consider setting the
hiresparameter to a higher value, especially when working with detailed artwork or when the final output requires high resolution. - Utilize the
batchparameter to efficiently process multiple images at once, which can save time and streamline your workflow when generating a series of images with similar settings.
Image Params Common Errors and Solutions:
Invalid packet input type
- Explanation: This error occurs when the input provided to the node is not in the expected tuple format.
- Solution: Ensure that the input is correctly formatted as a tuple containing the necessary parameters.
Invalid packet length
- Explanation: This error indicates that the input tuple does not contain the required number of elements.
- Solution: Verify that the input tuple includes exactly five elements corresponding to the expected parameters.
