Extends TransformExtensionOptions

Properties

width

width?: number

Target width, defaults to undefined

height

height?: number

Target height, defaults to undefined

fit

fit?: "cover" | "contain" | "force"

How to fit image if different aspect ratio, defaults to 'contain'

upscale

upscale?: boolean

Should we upscale smaller images, defaults to false

aspectRatio

aspectRatio?: number

Output aspect ratio, defaults to input aspect ratio

type

type?: string

Output type, defaults to input file type

quality

quality?: "pixelated" | "low" | "medium" | "high"

Resize quality. Defaults to 'medium'

compression

compression?: number

Compression quality. Value between 0 and 1, defaults to .98, only applies to JPEG and WEBP output

actionTransform

actionTransform?: string

Action name to use for rename. Defaults to 'transformImage'