VersionResizeInput
Last edit: Oct 13, 2026
Resizing of a generated image version
type VersionResizeInput {
background: CssColor
fit: ImageResizeFit
height: Int
position: ImageResizePosition
width: Int
without_enlargement: Boolean
}
Fields
background (CssColor)
Background color used with fit contain. Default: #000000
fit (ImageResizeFit)
How the image is fitted into width and height
height (Int)
Target height in pixels. When omitted, it is derived from width and the aspect ratio
position (ImageResizePosition)
Position to use when fit is cover or contain
width (Int)
Target width in pixels. When omitted, it is derived from height and the aspect ratio
without_enlargement (Boolean)
Do not enlarge the image when its width or height is already smaller than the given dimensions