Visit ComfyUI Online for ready-to-use ComfyUI environment
Resize images maintaining aspect ratio using specified ratio, alignment, dilation; essential for AI artists.
The BMAB Resize By Ratio node is designed to resize images based on a specified ratio, ensuring that the resized image maintains a certain aspect ratio relative to the original. This node is particularly useful for AI artists who need to adjust the dimensions of their images while preserving the visual integrity and proportions of the content. By leveraging advanced resizing techniques, the node can stretch or shrink images to meet the desired ratio, making it an essential tool for preparing images for various applications, such as digital art, web design, and more. The node also offers options for alignment and dilation, providing flexibility in how the resizing is applied.
This parameter accepts a BMAB bind
object, which contains the image data and context required for processing. It ensures that the node has access to the necessary information to perform the resizing operation.
This integer parameter specifies the number of steps to be used in the resizing process. It has a default value of 20, with a minimum of 0 and a maximum of 10000. Adjusting this value can impact the quality and speed of the resizing operation.
This float parameter controls the configuration scale, influencing the intensity of the resizing effect. It has a default value of 8.0, with a range from 0.0 to 100.0, adjustable in steps of 0.1. Fine-tuning this parameter can help achieve the desired balance between image quality and processing time.
This parameter allows you to select the sampler to be used during the resizing process. It includes options such as Use same sampler
and various samplers from comfy.samplers.KSampler.SAMPLERS
. The choice of sampler can affect the smoothness and accuracy of the resized image.
This parameter lets you choose the scheduler for the resizing operation, with options like Use same scheduler
and others from comfy.samplers.KSampler.SCHEDULERS
. The scheduler determines the order and timing of the resizing steps.
This float parameter specifies the denoising level to be applied during resizing. It has a default value of 0.5, with a range from 0.0 to 1.0, adjustable in steps of 0.01. Denoising can help reduce artifacts and improve the visual quality of the resized image.
This parameter allows you to select the resizing method, with options including stretching
, inpaint
, and inpaint+lama
. Each method offers a different approach to resizing, providing flexibility in how the image is adjusted.
This parameter specifies the alignment of the resized image, with options such as bottom
, top
, top-right
, right
, bottom-right
, bottom-left
, left
, top-left
, and center
. Alignment determines how the image content is positioned within the new dimensions.
This float parameter defines the target ratio for resizing, with a default value of 0.85, a minimum of 0.1, and a maximum of 0.95, adjustable in steps of 0.01. The ratio determines the aspect ratio of the resized image relative to the original.
This integer parameter controls the dilation level applied during resizing, with a default value of 30, a minimum of 4, and a maximum of 128, adjustable in steps of 1. Dilation can affect the spread and coverage of the resizing effect.
This optional parameter accepts an IMAGE
input, allowing you to provide the image to be resized. If not provided, the node will use the image data from the bind
parameter.
This output parameter returns a BMAB bind
object containing the resized image data and updated context. It ensures that the resized image is properly integrated into the workflow.
This output parameter returns the resized IMAGE
, allowing you to use the adjusted image in subsequent nodes or processes. The resized image maintains the specified ratio and alignment, ensuring it meets the desired specifications.
method
and alignment
settings to see which combination works best for your specific image and desired outcome.ratio
parameter carefully to maintain the visual integrity of the image. A ratio too far from the original may distort the image content.denoise
parameter to reduce artifacts, especially when working with high-resolution images or images with a lot of detail.ratio
parameter to a value closer to the original image's aspect ratio, or provide an image with a more suitable aspect ratio for resizing.alignment
parameter is set to one of the valid options: bottom
, top
, top-right
, right
, bottom-right
, bottom-left
, left
, top-left
, or center
.method
parameter is set to one of the valid options: stretching
, inpaint
, or inpaint+lama
.© Copyright 2024 RunComfy. All Rights Reserved.