Visit ComfyUI Online for ready-to-use ComfyUI environment
Streamline image loading and resizing for AI artists, preserving quality and saving time.
The LoadAndResizeImage
node is designed to streamline the process of loading and resizing images, making it an essential tool for AI artists who need to prepare images for various applications. This node allows you to load an image from a specified path and resize it according to your requirements, either by maintaining the original aspect ratio or by adjusting to specific dimensions. The node also supports downscaling and upscaling methods, ensuring that the image quality is preserved as much as possible. By automating these tasks, LoadAndResizeImage
helps you save time and effort, allowing you to focus more on the creative aspects of your work.
This parameter specifies the path to the image file you want to load. The image should be in a supported format, excluding formats like MPO. The node will read the image from this path and prepare it for resizing.
A boolean parameter that determines whether the image should be resized. If set to True
, the image will be resized according to the specified width and height. If False
, the image will retain its original dimensions. Default is False
.
This parameter sets the target width for the image. If keep_proportion
is enabled and only the height is specified, the width will be calculated to maintain the aspect ratio. If set to 0
, the original width of the image will be used. Default is 0
.
This parameter sets the target height for the image. Similar to the width parameter, if keep_proportion
is enabled and only the width is specified, the height will be calculated to maintain the aspect ratio. If set to 0
, the original height of the image will be used. Default is 0
.
A boolean parameter that determines whether the image should be repeated. This is useful for creating patterns or textures. Default is False
.
A boolean parameter that ensures the aspect ratio of the image is maintained during resizing. If enabled, the node will calculate the appropriate width or height to preserve the original proportions of the image. Default is True
.
This parameter ensures that the final dimensions of the image are divisible by the specified value. This is particularly useful for certain applications that require image dimensions to be multiples of a specific number. Default is 1
.
This parameter specifies the channel to be used for the mask, if any. It allows you to apply a mask to the image during the resizing process, which can be useful for various image processing tasks.
The resized image, returned as a tensor. This output can be used in subsequent nodes for further processing or analysis.
The width of the resized image. This value is useful for verifying that the image has been resized correctly and for any further processing that requires knowledge of the image dimensions.
The height of the resized image. Similar to the width, this value is important for ensuring the image has been resized as expected and for any additional processing steps.
keep_proportion
parameter.divisible_by
parameter to ensure your image dimensions are compatible with specific requirements, such as those needed for certain neural network architectures.repeat
parameter to repeat the image.keep_proportion
is disabled.keep_proportion
to allow the node to calculate the appropriate dimensions.© Copyright 2024 RunComfy. All Rights Reserved.