Visit ComfyUI Online for ready-to-use ComfyUI environment
Versatile image resizing node with high-quality LANCZOS resampling for AI artists and creative projects.
The PM_ImageResizeTarget node is designed to resize an image to a specified width and height, making it a versatile tool for AI artists who need to adjust image dimensions for various creative projects. This node ensures that the resized image maintains high quality by using the LANCZOS resampling method, which is known for its effectiveness in minimizing artifacts and preserving details. Whether you are preparing images for further processing, creating thumbnails, or standardizing image sizes for a project, this node provides a straightforward and efficient solution.
This parameter represents the input image that you want to resize. The image should be in a tensor format, which is a common representation in AI and machine learning workflows.
This parameter specifies the target width for the resized image. It accepts integer values with a default of 512, a minimum of 0, and a maximum of 2048. Adjusting this value will change the width of the output image to the specified number of pixels.
This parameter specifies the target height for the resized image. Similar to the width parameter, it accepts integer values with a default of 512, a minimum of 0, and a maximum of 2048. Adjusting this value will change the height of the output image to the specified number of pixels.
The output is the resized image in tensor format. This image will have the dimensions specified by the width and height input parameters, and it will be resampled using the LANCZOS method to ensure high quality.
ValueError: height and width must be greater than 0
TypeError: image must be a tensor
Image.Resampling.LANCZOS not found
© Copyright 2024 RunComfy. All Rights Reserved.