> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# ResizeImagesByShorterEdge - ComfyUI Built-in Node Documentation

> Complete documentation for the ResizeImagesByShorterEdge node in ComfyUI. Learn its inputs, outputs, parameters and usage.

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/ResizeImagesByShorterEdge/en.md)

This node resizes images so that the shorter edge matches a specified length while preserving the original aspect ratio. It calculates new dimensions based on the target length for the shorter side and returns the resized image.

## Inputs

| Parameter      | Data Type | Required | Range     | Description                                           |
| -------------- | --------- | -------- | --------- | ----------------------------------------------------- |
| `image`        | IMAGE     | Yes      | -         | The input image to be resized.                        |
| `shorter_edge` | INT       | Yes      | 1 to 8192 | Target dimension for the shorter edge. (default: 512) |

## Outputs

| Output Name | Data Type | Description                                                                   |
| ----------- | --------- | ----------------------------------------------------------------------------- |
| `image`     | IMAGE     | The resized image with the shorter edge matching the specified target length. |

***

**Source fingerprint (SHA-256):** `6bb3e1c974108ee7b75b47406ea02b3f47ca14305f9ee54d3d379eefbb7f26cd`
