Visit ComfyUI Online for ready-to-use ComfyUI environment
Automatically adjust image resolution based on scale factor for AI artists, maintaining aspect ratio and quality.
The Resolution Scale _noEmbryo node is designed to dynamically adjust the resolution of an image based on a specified scale factor. This node is particularly useful for AI artists who need to resize images while maintaining their aspect ratio, ensuring that the final output is suitable for various applications, such as digital art, design, or printing. By automatically calculating the new dimensions, the node simplifies the process of scaling images, allowing you to focus on the creative aspects of your work. The node's primary goal is to provide a seamless and efficient way to modify image resolutions without compromising quality, making it an essential tool for any digital artist's workflow.
The width
parameter specifies the desired width of the image. If set to zero, the node will automatically calculate the width based on the height and the original image's aspect ratio. This feature is particularly useful when you want to maintain the image's proportions while scaling. There are no explicit minimum or maximum values provided, but the width should be a positive integer.
The height
parameter defines the desired height of the image. Similar to the width, if the height is set to zero, the node will compute the height based on the width and the original aspect ratio. This ensures that the image's proportions are preserved during scaling. The height should also be a positive integer.
The scale_factor
is a crucial parameter that determines how much the image will be scaled. It is a multiplier applied to both the width and height to calculate the new dimensions. A scale factor greater than 1 will enlarge the image, while a value less than 1 will reduce its size. This parameter allows for precise control over the scaling process, enabling you to achieve the desired resolution.
The image
parameter is an optional input that represents the image to be scaled. If provided, the node will use the image's original dimensions to calculate the new width and height based on the scale factor. This parameter is essential for ensuring that the scaling process is applied to the correct image.
The new_width
output represents the calculated width of the image after applying the scale factor. This value is crucial for understanding the final dimensions of the scaled image and ensuring that it meets your specific requirements.
The new_height
output indicates the calculated height of the image after scaling. Like the new width, this value helps you verify that the image's dimensions align with your intended design or application.
The scale_factor
output simply returns the scale factor used in the scaling process. This output is useful for confirming that the correct scaling multiplier was applied to the image.
The width
output provides the original or calculated width used as a basis for scaling. This value is important for reference and for understanding how the final dimensions were derived.
The height
output gives the original or calculated height used in the scaling process. It serves as a reference point for the scaling operation and helps you track the changes made to the image's dimensions.
RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.