Interface ConversionOptions

Hierarchy

  • ConversionOptions

Properties

fit?: "cover" | "contain" | "fill" | "inside" | "outside"

Whether to fit the image within the specified dimensions (default: true)

height?: number

Height of the output image. If only height is specified, width will be calculated to maintain aspect ratio

optimize?: boolean

Whether to optimize the output image (default: true)

quality?: number

Quality of the output image (1-100), applies to lossy formats

width?: number

Width of the output image. If only width is specified, height will be calculated to maintain aspect ratio

withMetadata?: boolean

Whether to preserve EXIF metadata (default: false)

Generated using TypeDoc