> For the complete documentation index, see [llms.txt](https://docs.viesus.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.viesus.com/configuration/parameter-reference/resizing.md).

# Resizing

Image resizing and super-resolution.

<table><thead><tr><th width="168.800048828125">Parameter</th><th width="87">Value</th><th width="97.39990234375">Default</th><th>Description</th></tr></thead><tbody><tr><td><code>ResizeOn</code></td><td>0, 1</td><td>1</td><td>Enable / disable resizing</td></tr><tr><td><code>ResizeFacDetMode</code></td><td>0 – 3</td><td>1</td><td>Size calculation mode. <strong>0</strong> = factor, <strong>1</strong> = small side, <strong>2</strong> = width, <strong>3</strong> = height</td></tr><tr><td><code>ResizePixSize</code></td><td>Integer</td><td>6000</td><td>Target pixel size (depends on <code>ResizeFacDetMode</code>)</td></tr><tr><td><code>ResizeFactor</code></td><td>Float</td><td>4.0</td><td><a href="/pages/DcrYBlvmoAS9i01b3Blh">Resize factor</a> (depends on <code>ResizeFacDetMode</code>)</td></tr><tr><td><code>ResizeMode</code></td><td>0 – 12</td><td>5</td><td><a href="/pages/DcrYBlvmoAS9i01b3Blh">Resize algorithm</a> (see table below)</td></tr><tr><td><code>SupResThresh</code></td><td>Float</td><td>2.0</td><td><a href="/pages/DcrYBlvmoAS9i01b3Blh">Super-resolution threshold</a> factor</td></tr><tr><td><code>SupRes2xThresh</code></td><td>Float</td><td>3.0</td><td>Scale-factor threshold up to which the 2× super-resolution model is used; above it, the 4× model is applied</td></tr><tr><td><code>SRNoiseInjection</code></td><td>0, 1</td><td>0</td><td>Inject noise before super-resolution</td></tr></tbody></table>

## Resize mode values

<table><thead><tr><th width="90.60003662109375">Value</th><th width="301.5999755859375">Method</th><th>Description</th></tr></thead><tbody><tr><td>0</td><td>Default</td><td>Standard default resizing</td></tr><tr><td>1</td><td>Bicubic</td><td>Bicubic interpolation</td></tr><tr><td>2</td><td>Biquadratic</td><td>Biquadratic interpolation</td></tr><tr><td>3</td><td>Bilinear</td><td>Bilinear interpolation</td></tr><tr><td>4</td><td>Nearest Neighbor</td><td>Nearest neighbour interpolation</td></tr><tr><td>5</td><td>Super Resolution 4×</td><td>AI-based 4× super-resolution</td></tr><tr><td>6</td><td>Default — no SR</td><td>Default without super-resolution</td></tr><tr><td>7</td><td>Super Resolution 2× / 4×</td><td>AI-based 2× and 4× super-resolution</td></tr><tr><td>8</td><td>Super Resolution 2× / 4× Fast</td><td>Fast AI-based 2× and 4× super-resolution</td></tr><tr><td>9</td><td>Super Resolution 4× Fast</td><td>Fast AI-based 4× super-resolution</td></tr><tr><td>10</td><td>Super Resolution 2× Fast / 4× Fast</td><td>Fast AI-based 2× and 4× super-resolution (alternate)</td></tr><tr><td>11</td><td>Super Resolution 4× with Artifact Removal</td><td>AI 4× super-resolution with integrated artifact removal</td></tr><tr><td>12</td><td>Super Resolution 2× / 4× Legacy</td><td>Legacy 2× and 4× super-resolution model</td></tr></tbody></table>


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.viesus.com/configuration/parameter-reference/resizing.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
