> ## 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.

# ConversionParameters

> How an image is converted: the canvas, how the original is placed on it, and the output file's format and quality.



**Kind**: `object`

## Fields

**`aspectRatio`**: `String!`

The canvas's shape as `width:height`, each side a whole number from 1 to 100 (e.g. `4:3`).

---

**`background`**: `String`

The colour behind transparent areas and padding, as six upper-case hex digits without `#` (e.g. `FFFFFF`). Null when none is set.

---

**`mode`**: `ConversionMode!`

How the original is placed on the canvas.

---

**`outputFormat`**: `ConversionOutputFormat!`

The file format of the converted image.

---

**`paddingPercent`**: `Int`

Padding on each side as a percentage of `targetSize`, from 0 to 49. Set only with the mode that fills the background, null with the others.

---

**`quality`**: `Int!`

The output quality, from 1 to 100.

---

**`targetSize`**: `Int!`

The canvas's longer side in pixels, from 1 to 8000.



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