Type Alias: ExportFormat
ts
type ExportFormat = "png" | "jpeg";Image format used by all raster export commands (toBase64, toFile, saveToPhotoLibrary).
pngproduces a lossless image with alpha. On iOS the background is always transparent; on Android a non-transparentbackgroundColoris part of the image.jpegproduces a smaller lossy image. JPEG has no alpha so the canvasbackgroundColor(or white if transparent) is composited beneath the ink before encoding.