Size

Interfacein image-optimizer@fastly/js-compute 4.0.0View source

The size of a region, specified as either absolute dimensions or a ratio. Exactly one of absolute or ratio must be provided.

Properties

absolute

{ width: number | Percentage; height: number | Percentage }optionalView source

Absolute dimensions, with width and height as integer pixel values or percentage strings.

ratio

{ width: number; height: number }optionalView source

Aspect ratio, with width and height as numbers.