Extends TransformExtensionOptions
Properties
width
width?: number
Image target width, defaults to undefined
height
height?: number
Image target height, defaults to undefined
fit
fit?: "cover" | "contain" | "force"
How to fit image in target size bounds, defaults to 'contain'
upscale
upscale?: boolean
Should we upscale images, defaults to false
aspectRatio
aspectRatio?: number
Output aspect ratio, defaults to input image aspect ratio
type
type?: string
Output format type, defaults to input image type, some example types are 'image/jpeg', 'image/wepb', and 'image/png', limited to what the canvas toBlob method can output for the current browser
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
workersURL
workersURL?: URL
Where the extension can find the WebWorker to use
actionTransform
actionTransform?: string
Action name to use for rename. Defaults to 'transformImage'