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

# ConversionMode

> How a conversion places the original on the canvas. Every mode scales a smaller original up.



**Kind**: `enum`

## Values

**`FIT`** — Scales the original to fit inside the canvas, keeping its proportions, so one side can come out shorter than the canvas.

**`FILL_BACKGROUND`** — Fits the original inside the canvas minus `paddingPercent` on each side and fills the rest with `background` when it's set, so the output is the full canvas.

**`CROP`** — Scales the original to cover the canvas, keeping its proportions, and crops what's left over from the centre.

**`AUTO`** — Crops when the original and the canvas are both landscape or both portrait, and fits otherwise.



This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.