Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyUI-Magic-Assistant > 📏 多功能图像缩放 Magic Multi-Function Image Resize

ComfyUI Node: 📏 多功能图像缩放 Magic Multi-Function Image Resize

Class Name

MagicResolutionResize

Category
✨ Magic Assistant
Author
shigjfg (Account age: 3708days)
Extension
ComfyUI-Magic-Assistant
Latest Updated
2026-06-02
Github Stars
0.02K

How to Install ComfyUI-Magic-Assistant

Install this extension via the ComfyUI Manager by searching for ComfyUI-Magic-Assistant
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Magic-Assistant 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

📏 多功能图像缩放 Magic Multi-Function Image Resize Description

Intelligently resize images with advanced interpolation for AI artists in ComfyUI framework.

📏 多功能图像缩放 Magic Multi-Function Image Resize:

The MagicResolutionResize node is designed to intelligently adjust the resolution of images and latent data within the ComfyUI framework. This node provides a flexible and efficient way to resize images based on various modes, such as long edge presets, ratio scaling, or specific dimensions. By leveraging advanced interpolation methods, it ensures high-quality resizing while maintaining the integrity of the original image. The node is particularly beneficial for AI artists who need to prepare images for further processing or output at different resolutions, offering a seamless and automated approach to resizing tasks.

📏 多功能图像缩放 Magic Multi-Function Image Resize Input Parameters:

mode

The mode parameter determines the resizing strategy to be applied. It offers three options: "✨ 长边预设 (Long Edge)" for resizing based on the longest edge, "🔢 按比例 (Ratio)" for scaling by a specified ratio, and "📐 指定尺寸 (Dimensions)" for setting exact dimensions. This parameter allows you to choose the most suitable resizing method for your specific needs.

resolution

The resolution parameter is used when the "Long Edge" mode is selected. It specifies the target resolution for the longest edge of the image. The default value is 1024, with options typically including 512, 768, and 1024. This parameter helps in maintaining a consistent resolution across different images.

scale_ratio

The scale_ratio parameter is applicable in the "Ratio" mode and defines the scaling factor for resizing the image. It accepts a float value ranging from 0.1 to 8.0, with a default of 1.0. This parameter allows for precise control over the degree of scaling applied to the image.

dim_preset

The dim_preset parameter is used in the "Dimensions" mode to select predefined width and height combinations. It serves as a convenient shortcut for setting dimensions, with options like "512x512" and "512x768". This parameter simplifies the process of choosing common dimension presets.

width_px

The width_px parameter specifies the target width in pixels when using the "Dimensions" mode. It accepts integer values ranging from 64 to 8192, with a default of 512. This parameter allows for precise control over the final width of the resized image.

height_px

The height_px parameter defines the target height in pixels for the "Dimensions" mode. Similar to width_px, it accepts integer values from 64 to 8192, with a default of 512. This parameter ensures that the resized image meets specific height requirements.

method

The method parameter determines the interpolation method used for resizing. Options include "nearest-exact", "bilinear", "area", "bicubic", "lanczos", and "bislerp", with "bicubic" as the default. This parameter affects the quality and smoothness of the resized image, allowing you to choose the most appropriate method for your needs.

image

The image parameter is an optional input that accepts an image to be resized. If provided, the node will apply the specified resizing method to this image. This parameter is essential for processing visual data within the node.

latent

The latent parameter is an optional input that accepts latent data for resizing. If provided, the node will adjust the dimensions of the latent data according to the specified mode and method. This parameter is crucial for handling non-visual data that requires resizing.

📏 多功能图像缩放 Magic Multi-Function Image Resize Output Parameters:

IMAGE

The IMAGE output parameter provides the resized image based on the input parameters and selected mode. This output is crucial for further processing or final output, ensuring that the image meets the desired resolution and quality standards.

LATENT

The LATENT output parameter delivers the resized latent data, if applicable. This output is important for workflows involving latent data, ensuring that the resized dimensions align with the specified requirements.

📏 多功能图像缩放 Magic Multi-Function Image Resize Usage Tips:

  • To maintain image quality, choose the bicubic method for smooth transitions and high-quality results, especially when enlarging images.
  • Use the Long Edge mode when you want to maintain the aspect ratio while resizing images to a specific resolution, ensuring consistent output across different images.

📏 多功能图像缩放 Magic Multi-Function Image Resize Common Errors and Solutions:

Image size mismatch

  • Explanation: This error occurs when the input image dimensions do not match the expected dimensions for resizing.
  • Solution: Ensure that the input image dimensions are correctly specified and match the expected input for the selected mode.

Invalid interpolation method

  • Explanation: This error arises when an unsupported interpolation method is selected.
  • Solution: Verify that the chosen method is one of the supported options: "nearest-exact", "bilinear", "area", "bicubic", "lanczos", or "bislerp". Adjust the method parameter accordingly.

📏 多功能图像缩放 Magic Multi-Function Image Resize Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Magic-Assistant
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.

📏 多功能图像缩放 Magic Multi-Function Image Resize