Optional
fitOptional
heightHeight of the output image. If only height is specified, width will be calculated to maintain aspect ratio
Optional
optimizeWhether to optimize the output image (default: true)
Optional
qualityQuality of the output image (1-100), applies to lossy formats
Optional
widthWidth of the output image. If only width is specified, height will be calculated to maintain aspect ratio
Optional
withWhether to preserve EXIF metadata (default: false)
Generated using TypeDoc
Whether to fit the image within the specified dimensions (default: true)