Homepage

PropertyUploadResizeInput

Last edit: Nov 10, 2026

How an image version is resized

type PropertyUploadResizeInput {
  background: CssColor
  fit: PropertyUploadFit
  height: Int
  position: PropertyUploadPosition
  width: Int
  without_enlargement: Boolean
}

Fields

background (CssColor)

Background color of the padding added when fit is contain. Defaults to #000000

fit (PropertyUploadFit)

How the image is fitted into width and height. Defaults to cover

height (Int)

Target height in pixels. When omitted, it is calculated from width, preserving the aspect ratio

position (PropertyUploadPosition)

Part of the image to keep when fit is cover or contain

width (Int)

Target width in pixels. When omitted, it is calculated from height, preserving the aspect ratio

without_enlargement (Boolean)

When true, an image already smaller than width or height is not enlarged. Defaults to false

Questions?

We are always happy to help with any questions you may have.

contact us