Types
ConversionParameters
How an image is converted: the canvas, how the original is placed on it, and the output file’s format and quality.
object
ConversionParametersFields
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
How the original is placed 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. 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.
Was this page helpful?