ComfyUI > Nodes > SDVN Comfy node > 📐 Image Size

ComfyUI Node: 📐 Image Size

Class Name

SDVN Image Size

Category
📂 SDVN/💡 Creative
Author
Stable Diffusion VN (Account age: 281days)
Extension
SDVN Comfy node
Latest Updated
2025-04-27
Github Stars
0.04K

How to Install SDVN Comfy node

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

Adjust image dimensions with scaling modes for AI artists, ensuring aspect ratio and precise control over final size.

📐 Image Size:

The SDVN Image Size node is designed to adjust the dimensions of an image based on specific scaling modes and parameters. It provides a flexible approach to resizing images, ensuring that they fit within desired dimensions while maintaining their aspect ratio. This node is particularly useful for AI artists who need to prepare images for various applications, such as creating consistent layouts or optimizing images for different display sizes. By offering options to scale images by a maximum size or a specific scale factor, the node allows for precise control over the final image dimensions. Additionally, it can integrate with upscale models to enhance image quality during resizing, making it a powerful tool for both aesthetic and technical image adjustments.

📐 Image Size Input Parameters:

mode

The mode parameter determines the method used to resize the image. It can be set to "Maxsize" or "Scale". In "Maxsize" mode, the image is resized to fit within the specified width and height, maintaining the aspect ratio. In "Scale" mode, the image dimensions are multiplied by a scale factor. This parameter is crucial as it dictates how the image will be resized, affecting both the final dimensions and the aspect ratio. There are no specific minimum or maximum values, but the choice of mode significantly impacts the resizing process.

width

The width parameter specifies the target width for the image when using the "Maxsize" mode. If the width is set to zero, it will be automatically calculated based on the height to maintain the aspect ratio. This parameter allows you to define the maximum width the image should have after resizing, ensuring it fits within specific layout constraints.

height

The height parameter specifies the target height for the image when using the "Maxsize" mode. Similar to the width, if the height is set to zero, it will be automatically calculated based on the width to maintain the aspect ratio. This parameter is essential for defining the maximum height the image should have, ensuring it fits within specific layout constraints.

scale

The scale parameter is used in "Scale" mode to define the factor by which the image dimensions should be multiplied. This parameter allows for proportional resizing of the image, making it larger or smaller while maintaining the original aspect ratio. The scale factor should be a positive number, with values greater than 1 increasing the size and values less than 1 decreasing it.

model_name

The model_name parameter specifies the name of the upscale model to be used for enhancing the image quality during resizing. If a valid model name is provided, the node will apply the upscale model to the image, improving its resolution and detail. This parameter is optional, and if set to "None", no upscale model will be applied.

📐 Image Size Output Parameters:

resized_image

The resized_image output is the final image after resizing and any optional upscaling. This output provides the adjusted image that fits the specified dimensions or scale, ready for further use or display. The resized image maintains the aspect ratio and quality enhancements applied during the process.

📐 Image Size Usage Tips:

  • Use "Maxsize" mode when you need the image to fit within specific dimensions, such as for a layout or display requirement, while maintaining the aspect ratio.
  • Opt for "Scale" mode when you want to proportionally resize the image by a specific factor, which is useful for uniformly enlarging or reducing the image size.
  • Consider using an upscale model if you need to enhance the image quality during resizing, especially when increasing the image size significantly.

📐 Image Size Common Errors and Solutions:

Image dimensions cannot be zero

  • Explanation: This error occurs when both the width and height are set to zero, making it impossible to calculate the resized dimensions.
  • Solution: Ensure that at least one of the dimensions (width or height) is set to a non-zero value to allow the node to calculate the other dimension while maintaining the aspect ratio.

Invalid scale factor

  • Explanation: This error arises when the scale factor is set to a non-positive value, which is not valid for resizing.
  • Solution: Set the scale factor to a positive number greater than zero to ensure proper scaling of the image dimensions.

📐 Image Size Related Nodes

Go back to the extension to check out more related nodes.
SDVN Comfy node
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 Playground, enabling artists to harness the latest AI tools to create incredible art.