ComfyUI > Nodes > ComfyUI_KimNodes > 🍒Image_Resize📐图像尺寸缩放

ComfyUI Node: 🍒Image_Resize📐图像尺寸缩放

Class Name

Image_Resize

Category
🍒 Kim-Nodes/🏖️图像处理
Author
Kim (Account age: 2536days)
Extension
ComfyUI_KimNodes
Latest Updated
2025-09-22
Github Stars
0.05K

How to Install ComfyUI_KimNodes

Install this extension via the ComfyUI Manager by searching for ComfyUI_KimNodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI_KimNodes in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

🍒Image_Resize📐图像尺寸缩放 Description

Image_Resize adjusts image dimensions while preserving quality, offering various resampling methods.

🍒Image_Resize📐图像尺寸缩放:

The Image_Resize node is designed to adjust the dimensions of an image while maintaining its quality and aspect ratio. This node is particularly useful for artists and designers who need to resize images to fit specific dimensions or requirements without distorting the image. It offers a variety of resampling methods, such as nearest, bilinear, bicubic, and lanczos, which allow you to choose the best method for your specific needs, whether you are looking for speed or quality. The node also supports efficient resizing by calculating dimensions that are multiples of 8, which can be beneficial for certain applications that require such alignment. Additionally, it provides an option for supersampling, which can enhance the quality of the resized image by initially enlarging it before scaling it down to the desired size.

🍒Image_Resize📐图像尺寸缩放 Input Parameters:

t_size

The t_size parameter specifies the target size for the image's longer edge. It determines the final dimensions of the resized image, ensuring that the aspect ratio is preserved. The default value is 1024, and it is crucial for setting the desired output size. This parameter helps in achieving uniformity across images when a specific dimension is required.

resample

The resample parameter allows you to choose the resampling method used during the resizing process. Options include nearest, bilinear, bicubic, and lanczos. Each method offers a different balance between speed and quality, with nearest being the fastest and lanczos providing the highest quality. The default method is bicubic, which offers a good compromise between speed and quality.

supersample

The supersample parameter is a boolean option that, when set to true, enables supersampling. This process involves initially enlarging the image before resizing it to the target dimensions, which can improve the quality of the final image by reducing aliasing artifacts. This option is particularly useful when high-quality output is a priority.

🍒Image_Resize📐图像尺寸缩放 Output Parameters:

resized_image

The resized_image is the output parameter that provides the final image after the resizing process. This image will have the dimensions specified by the t_size parameter and will be processed using the selected resampling method. The output is crucial for ensuring that the image meets the desired specifications while maintaining visual quality.

🍒Image_Resize📐图像尺寸缩放 Usage Tips:

  • Use the bicubic resampling method for a good balance between speed and quality when resizing images.
  • Enable supersample if you need to minimize aliasing and achieve higher quality in the resized image, especially for detailed artwork.

🍒Image_Resize📐图像尺寸缩放 Common Errors and Solutions:

Invalid resample method

  • Explanation: This error occurs when an unsupported resampling method is specified.
  • Solution: Ensure that the resample parameter is set to one of the supported methods: nearest, bilinear, bicubic, or lanczos.

Target size too small

  • Explanation: The specified t_size is below the minimum allowed value, which can lead to unexpected results.
  • Solution: Set the t_size parameter to a value greater than or equal to the minimum allowed size, typically 1.

Image not found

  • Explanation: The input image is missing or not properly loaded into the node.
  • Solution: Verify that the image is correctly loaded and passed to the node before execution.

🍒Image_Resize📐图像尺寸缩放 Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI_KimNodes
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.