Skip to main content
inputConversionParametersInput

Fields

aspectRatio
String!
required

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

background
String

The colour behind transparent areas and padding, as six hex digits without # (e.g. FFFFFF); lower case is stored upper case. Optional with every mode; left out, no background colour is applied.

mode

How to place the original on the canvas.

outputFormat

The file format of the converted image.

paddingPercent
Int

Padding on each side as a percentage of targetSize, from 0 to 49. Required with FILL_BACKGROUND and not allowed with the other modes. The canvas minus the padding on both sides must be at least 1 px.

quality
Int!
required

The output quality, from 1 to 100.

targetSize
Int!
required

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