Visit ComfyUI Online for ready-to-use ComfyUI environment
Resize images while maintaining aspect ratio, fill extra space with black or stretched image. Ideal for standardizing image sizes.
The BMAB Resize and Fill node is designed to resize an image to a specified width and height while maintaining its aspect ratio. This node ensures that the resized image fits within the given dimensions, filling any extra space with either black or a stretched version of the image, depending on the selected option. This functionality is particularly useful for AI artists who need to standardize image sizes without distorting the original content. By using this node, you can achieve a consistent look across your images, making it easier to integrate them into various projects or presentations.
This parameter accepts the image that you want to resize. The image should be in a format that the node can process, typically a pixel-based image.
This parameter specifies the target width for the resized image. The width is an integer value with a default of 1024, a minimum of 0, and a maximum of 10000. Adjusting this value will change the width of the output image.
This parameter specifies the target height for the resized image. The height is an integer value with a default of 1024, a minimum of 0, and a maximum of 10000. Adjusting this value will change the height of the output image.
This parameter determines whether the extra space in the resized image should be filled with black or a stretched version of the image. It has two options: disable
and enable
. When set to enable
, the extra space will be filled with black. When set to disable
, the extra space will be filled by stretching the image.
The output is the resized image that fits within the specified width and height. The image maintains its aspect ratio, and any extra space is filled according to the fill_black
parameter. This ensures that the resized image is consistent with the specified dimensions without distorting the original content.
fill_black
parameter is set to disable
. This will fill any extra space by stretching the image, providing a seamless look.fill_black
parameter to enable
. This will fill any extra space with black, making it easier to integrate the image into various backgrounds or layouts.Invalid image format
Width or height out of range
Image processing failed
© Copyright 2024 RunComfy. All Rights Reserved.