> For the complete documentation index, see [llms.txt](https://docs.realmacsoftware.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.realmacsoftware.com/squash/quick-guide/nodes/resize.md).

# Resize

Reduce the dimensions of an image

Choose a **Mode** in the Resize section to change the dimensions of your exported images. The default mode, **None**, keeps the original dimensions; choose it again to turn resizing off. Most modes keep the original aspect ratio; **Free size** lets you set both dimensions independently.

| Mode               | How it works                                                                                    |
| ------------------ | ----------------------------------------------------------------------------------------------- |
| None               | Keep the original dimensions. No size controls are shown.                                       |
| Width              | Set the width in pixels. The height changes proportionally.                                     |
| Height             | Set the height in pixels. The width changes proportionally.                                     |
| Max Size           | Fit the longest edge within the pixel limit. Smaller images stay at their original size.        |
| Max Width / Height | Fit within the width and height limits you enter. Smaller images stay at their original size.   |
| Percent            | Scale both dimensions by a percentage of the original.                                          |
| Free size          | Set an exact width and height. The image can stretch because its aspect ratio is not preserved. |

### Max Size

This is useful for batches containing both portrait and landscape images. With a maximum of **1200 pixels**:

* A 2400 × 1600 landscape image becomes 1200 × 800.
* A 1600 × 2400 portrait image becomes 800 × 1200.
* An 800 × 600 image stays at 800 × 600.

### Max Width / Height

Use this mode to fit images inside a bounding box. A 2400 × 1600 image fitted within **1200 × 1200** becomes 1200 × 800. Neither dimension exceeds its limit, and smaller images are not enlarged.

Width, Height and Free size can enlarge images when you request dimensions larger than the original. Use either Max mode if you want to avoid upscaling.

### Percent and Free size

At **50%**, a 2000 × 1000 image becomes 1000 × 500. At **100%**, its dimensions stay the same.

In Free size, use the two-way arrow between the dimension fields to swap width and height.

Review dimensions in the image list or [preview pane](/squash/quick-guide/editor.md) before exporting.

<details>

<summary>Squash 3 reference screenshots</summary>

These screenshots show the earlier Squash 3 interface.

![Main Interface with Resize Node Highlighted](https://1309898043-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9hJwt9oZ5CYj9I9YIUa9%2Fuploads%2Fgit-blob-b6890fc86e83b926f80840060e5091ee1aba8d16%2FCleanShot%202022-04-04%20at%206.17.53%402x%202.png?alt=media)

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.realmacsoftware.com/squash/quick-guide/nodes/resize.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
