Visit ComfyUI Online for ready-to-use ComfyUI environment
Batch crop and resize images by specified ratios for AI artists, ensuring consistent dimensions efficiently.
The ImagesCropByRatioAndResizeBatch
node is designed to process a batch of images by cropping them according to specified width and height ratios and then resizing them. This node is particularly useful for AI artists who need to standardize the dimensions of multiple images in a single operation, ensuring consistency across their dataset. By leveraging this node, you can efficiently manage and prepare images for further processing or analysis, saving time and effort compared to handling each image individually. The node operates by taking a list of images, applying the cropping and resizing operations based on the provided ratios, and then returning the processed images along with their new dimensions.
This parameter accepts a list of images that you want to process. Each image in the list will be cropped and resized according to the specified ratios. The images should be in a format that the node can process, typically as tensors or arrays.
This parameter defines the width ratio for cropping the images. It determines the portion of the image's width that will be retained after cropping. For example, a value of 0.5 will crop the image to half of its original width. This parameter is crucial for controlling the horizontal aspect of the cropped images.
This parameter specifies the height ratio for cropping the images. Similar to the width ratio, it determines the portion of the image's height that will be retained. A value of 0.5 will crop the image to half of its original height. This parameter is essential for managing the vertical aspect of the cropped images.
This output parameter provides the list of images that have been cropped and resized. Each image in the list has been processed according to the specified width and height ratios, ensuring uniformity in their dimensions.
This output parameter indicates the new width of the processed images. It reflects the width after the cropping and resizing operations have been applied, providing you with the exact dimension for further use.
This output parameter indicates the new height of the processed images. Similar to the width parameter, it reflects the height after the cropping and resizing operations, giving you the precise dimension for subsequent tasks.
width_ratio_size
parameter is not provided or is incorrectly named in the input.width_ratio_size
parameter in your input with the correct name and a valid value.height_ratio_size
parameter is missing or incorrectly named in the input.height_ratio_size
parameter is included in your input with the correct name and a valid value.© Copyright 2024 RunComfy. All Rights Reserved.