> ## 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 by adjusting their dimensions so that the length of the shorter side matches a specified target value. It calculates new dimensions to maintain the original image's aspect ratio. The resized image is returned.

## Inputs

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

## Outputs

| Output Name | Data Type | Description        |
| ----------- | --------- | ------------------ |
| `image`     | IMAGE     | The resized image. |
